I followed the instructions but when I am on the AR view in my app I get this error and the app crashes :
D/AndroidRuntime(16738): Shutting down VM
E/AndroidRuntime(16738): FATAL EXCEPTION: main
E/AndroidRuntime(16738): java.lang.RuntimeException: Unable to resume activity {com.alpagapp.landingzone/com.google.ar.core.InstallActivity}: java.lang.SecurityException: com.alpagapp.landingzone: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts
E/AndroidRuntime(16738): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:5176)
E/AndroidRuntime(16738): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:5209)
E/AndroidRuntime(16738): at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:57)
E/AndroidRuntime(16738): at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:60)
E/AndroidRuntime(16738): at android.app.servertransaction.TransactionExecutor.executeLifecycleItem(TransactionExecutor.java:254)
E/AndroidRuntime(16738): at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:228)
E/AndroidRuntime(16738): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:91)
E/AndroidRuntime(16738): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2544)
E/AndroidRuntime(16738): at android.os.Handler.dispatchMessage(Handler.java:107)
E/AndroidRuntime(16738): at android.os.Looper.loopOnce(Looper.java:232)
E/AndroidRuntime(16738): at android.os.Looper.loop(Looper.java:317)
E/AndroidRuntime(16738): at android.app.ActivityThread.main(ActivityThread.java:8501)
E/AndroidRuntime(16738): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(16738): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
E/AndroidRuntime(16738): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)
E/AndroidRuntime(16738): Caused by: java.lang.SecurityException: com.alpagapp.landingzone: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts
E/AndroidRuntime(16738): at android.os.Parcel.createExceptionOrNull(Parcel.java:3182)
E/AndroidRuntime(16738): at android.os.Parcel.createException(Parcel.java:3166)
E/AndroidRuntime(16738): at android.os.Parcel.readException(Parcel.java:3149)
E/AndroidRuntime(16738): at android.os.Parcel.readException(Parcel.java:3091)
E/AndroidRuntime(16738): at
/android.app.IActivityManager$Stub$Proxy.registerReceiverWithFeature(IActivityManager.java:5784)
E/AndroidRuntime(16738): at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1853)
E/AndroidRuntime(16738): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1793)
E/AndroidRuntime(16738): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1781)
E/AndroidRuntime(16738): at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:756)
E/AndroidRuntime(16738): at com.google.ar.core.p.a(InstallService.java:35)
E/AndroidRuntime(16738): at com.google.ar.core.InstallActivity.startInstaller(InstallActivity.java:116)
E/AndroidRuntime(16738): at com.google.ar.core.InstallActivity.onResume(InstallActivity.java:89)
E/AndroidRuntime(16738): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1666)
E/AndroidRuntime(16738): at android.app.Activity.performResume(Activity.java:8915)
E/AndroidRuntime(16738): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:5166)
E/AndroidRuntime(16738): ... 14 more
E/AndroidRuntime(16738): Caused by: android.os.RemoteException: Remote stack trace:
E/AndroidRuntime(16738): at com.android.server.am.ActivityManagerService.registerReceiverWithFeature(ActivityManagerService.java:14337)
E/AndroidRuntime(16738): at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2615)
E/AndroidRuntime(16738): at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2798)
E/AndroidRuntime(16738): at android.os.Binder.execTransactInternal(Binder.java:1496)
E/AndroidRuntime(16738): at android.os.Binder.execTransact(Binder.java:1440)
E/AndroidRuntime(16738):
I/Process (16738): Sending signal. PID: 16738 SIG: 9
Lost connection to device.
Exited.
From what I've read I should add android:exported="true" on the activity related to ar in my AndroidManifest.xml but there is no such activity so maybe the activity is added later or maybe the error don't come from there.
I followed the instructions but when I am on the AR view in my app I get this error and the app crashes :
From what I've read I should add
android:exported="true"on the activity related to ar in my AndroidManifest.xml but there is no such activity so maybe the activity is added later or maybe the error don't come from there.