so im trying to build an android ar game but when i go to build it i get the following error. any suggestions on how to fix it?
…\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\src\main\AndroidManifest.xml:38:13-38 Error:
Attribute meta-data#com.google.ar.core.min_apk_version@value value=(210910000) from [:arcore_client:] AndroidManifest.xml:38:13-38
is also present at [:nar-dependencies:] AndroidManifest.xml:45:13-38 value=(191106000).
Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:36:9-38:41 to override.
…\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\src\main\AndroidManifest.xml:90:13-37 Error:
Attribute meta-data#com.google.ar.core@value value=(required) from [:unityLibrary] AndroidManifest.xml:90:13-37
is also present at [:nar-dependencies:] AndroidManifest.xml:53:13-37 value=(optional).
Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:88:9-90:40 to override.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ‘:launcher:processDebugManifest’.
Manifest merger failed with multiple errors, see logs
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Recently (circa July 2022) there have been reports of Unity’s installer failing to install the Android Tools.
If it’s not that, then here’s how to troubleshoot:
First, make a blank project with a single blank scene and prove that it builds successfully.
If it does NOT build, then go fix your Unity installation, or your other tools, such as Android SDK, NDK, JDK, etc.
Until you can build a blank project to the target platform, don’t fiddle with anything else.
Once you can build a blank project, now bisect the problem by bringing over parts of your current project and building it one subsystem at a time, perhaps stubbing things out that might trigger compiler errors.
Most often things that prevent building are third-party libraries such as Firebase.
Once you identify the subsystem, go to the documentation for it and make sure you are doing it correctly.
It may also be helpful to work through a tutorial or two for that subsystem.
Yeah I’ve checked all that I can build a normal android 3-D mobile game with no issue but the error is saying it’s something in the AR core I think which is the pre-installed stuff from unity
If it is, might try de-installing it all, reinstalling it, or perhaps checking (where you could check I don’t actually know) if all the combinations of Unity version, SDK and JDK and NDK version, and AR Core version are all happy together.