我们已经为Android P定制了只读存储器,并在我们的QCom板上运行。我们正试图在我们的测试android应用程序中运行ARCore,以确保我们的设备支持Google ARCore。
现在,为了让它工作,我遵循了这里提到的步骤:
从https://developers.google.com/ar/develop/java/emulator#update-arcore下载并安装用于ARCore.apk的Google Play服务
从https://github.com/google-ar/arcore-android-sdk/tree/master/samples/hello_ar_java/app/src/main/java/com/google/ar/core/examples/java/common/rendering下载并安装ARCore测试应用程序
现在,当我尝试运行这个应用程序时,我得到了这样的异常:
06-24 10:14:45.858 31388 31388 E native : session_create_implementation_shared.cc:1912 Unable to obtain device profile from the content provider: NOT_FOUND: Device is not supported.
06-24 10:14:45.858 31388 31388 E native : session_create_implementation_shared.cc:1670 Failed to create calibration config and device profile.
06-24 10:14:45.859 31388 31388 W native : session_create_implementation_shared.cc:1671 CreateDeviceProfileDirectDependencies returning NOT_FOUND:
06-24 10:14:45.859 31388 31388 W native : ARCoreError: third_party/arcore/ar/core/android/implementation/session_create_implementation_shared.cc:1916
06-24 10:14:45.859 31388 31388 W native : [type.googleapis.com/util.ErrorSpacePayload='ArStatusErrorSpace::AR_UNAVAILABLE_DEVICE_NOT_COMPATIBLE'].
06-24 10:14:45.859 31388 31447 V third_party/redwood/infrastructure/jni_common/jni_helper.cc: ~JniHelper: about to detach thread (Called from line 339).
06-24 10:14:45.859 31388 31447 V third_party/redwood/infrastructure/jni_common/jni_helper.cc: ~JniHelper: detached thread (Called from line 339).
06-24 10:14:45.860 31388 31388 E native : error_policy_util.cc:260
06-24 10:14:45.860 31388 31388 E native : ################ ARCore Native Error ##################
06-24 10:14:45.860 31388 31388 E native : BUILD_CHANGELIST:309859035
06-24 10:14:45.860 31388 31388 E native : BUILD_BASELINE_CHANGELIST:307322850
06-24 10:14:45.860 31388 31388 E native : ################### Stack Trace Begin ################
06-24 10:14:45.860 31388 31388 E native : ARCoreError: third_party/arcore/ar/core/android/implementation/session_create_implementation_shared.cc:1916 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/android/implementation/session_create_implementation_shared.cc?g=0&l=1916
06-24 10:14:45.860 31388 31388 E native : ARCoreError: third_party/arcore/ar/core/android/implementation/session_create_implementation.cc:257 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/android/implementation/session_create_implementation.cc?g=0&l=257
06-24 10:14:45.860 31388 31388 E native : ARCoreError: third_party/arcore/ar/core/android/implementation/session_create_implementation.cc:337 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/android/implementation/session_create_implementation.cc?g=0&l=337
06-24 10:14:45.860 31388 31388 E native : ################### Stack Trace End #################
06-24 10:14:45.860 31388 31388 E native :
06-24 10:14:45.975 26848 26880 E libc : Access denied finding property "ro.hardware.chipname"
06-24 10:14:45.965 26848 26848 W com.android.vending: type=1400 audit(0.0:654): avc: denied { open } for comm=62674578656375746F72202331 path="/dev/__properties__/u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=12631 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
06-24 10:14:46.010 31388 31388 E HelloArActivity: Exception creating session
06-24 10:14:46.010 31388 31388 E HelloArActivity: com.google.ar.core.exceptions.UnavailableDeviceNotCompatibleException
06-24 10:14:46.010 31388 31388 E HelloArActivity: at java.lang.reflect.Constructor.newInstance0(Native Method)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at com.google.ar.core.Session.throwExceptionFromArStatus(Session.java:102)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at com.google.ar.core.Session.nativeCreateSessionAndWrapperWithFeatures(Native Method)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at com.google.ar.core.Session.<init>(Session.java:14)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at com.google.ar.core.Session.<init>(Session.java:6)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at com.google.ar.core.examples.java.helloar.HelloArActivity.onResume(HelloArActivity.java:169)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1413)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at android.app.Activity.performResume(Activity.java:7300)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3815)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3855)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1817)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at android.os.Handler.dispatchMessage(Handler.java:106)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at android.os.Looper.loop(Looper.java:193)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at android.app.ActivityThread.main(ActivityThread.java:6746)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at java.lang.reflect.Method.invoke(Native Method)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
06-24 10:14:46.010 31388 31388 E HelloArActivity: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:870)
我相信是因为我的设备不在支持ARCore的设备列表中:https://developers.google.com/ar/discover/supported-devices
我的问题是,有没有办法在我的设备上运行ARCore?我还下载了ARCore软件开发工具包的源代码,有没有办法更新源代码并在我的设备上运行AR核心应用程序?
提前谢谢。
发布于 2020-06-27 02:50:12
如果您的安卓智能手机不在支持的ARCore设备列表中,请尝试使用PTC Vuforia9.0 for Unity。有一些机会,你的手机可能会通过Vuforia构建ARCore项目。
此外,你可以尝试用ARCore-Patch安装ARCore-for-All来绕过ARCore安装的限制,但我不确定这是否能帮助你欺骗谷歌。请考虑到这些库的安装可能会影响你的安卓操作系统的break
/compromise
安全性。
https://stackoverflow.com/questions/62576822
复制相似问题