arcore-android-sdk icon indicating copy to clipboard operation
arcore-android-sdk copied to clipboard

Why I am getting "Application manifest must contain activity com.google.ar.core.InstallActivity"

Open RavindraVirat opened this issue 8 years ago • 8 comments

In my device I have already installed Arcore app from playstore, Sample Arcore app is working properly but when I integrated Ar sample app in my another sample app so that if device supports Arcore we can use Arcore feature, but when I am running the app after integration I am getting this exception "Application manifest must contain activity com.google.ar.core.InstallActivity", I am not getting any proper solution how to tackle this.

RavindraVirat avatar May 16 '18 11:05 RavindraVirat

From https://developers.google.com/ar/develop/java/enable-arcore:

Note: Gradle automatically merges additional tags from the ARCore library into your app's manifest. Do not delete these tags.

It seems you are not picking up the manifest contents of the ARCore AAR file. These are critical for the operation of ARCire.

inio avatar May 16 '18 16:05 inio

Thanks for reply. I have mentioned content of manifest from Arcore sample to my sample app but I did not see AAR file anywhere, still I am getting the error. But when I mentioned activity tag like this android:name="com.google.ar.core.InstallActivity" in manifest, it solved the issue. Is it the right way? Please guide, if it is wrong way then suggest the right way.

RavindraVirat avatar May 17 '18 06:05 RavindraVirat

The AAR comes in through the gradle/maven dependency. What build environment are you using?

inio avatar May 17 '18 17:05 inio

I am using Mac OS build environment.

RavindraVirat avatar May 22 '18 04:05 RavindraVirat

No, I mean like what IDE are you using. Android Studio?

inio avatar May 22 '18 14:05 inio

Ya I am using Android Studio.

RavindraVirat avatar May 23 '18 04:05 RavindraVirat

It sounds like there's something wrong with your build process. the 'com.google.ar:core:1.2.0' gradle dependency provides Manifest entries that need to be merged into your app. If you're manually unpacking that library, you need to make sure the AndroidManifest.xml contents get merged into your app manifest.

inio avatar May 23 '18 18:05 inio

Closing for inactivity.

inio avatar Jun 04 '18 18:06 inio