Closed chescored closed 3 weeks ago
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Hey @chescored, thanks for reaching out. It looks like there's a similar issue reported in another thread.
In your gradles (main and launcher Templates), try this: minSdkVersion 22 targetSDKversion 32 compileSDKversion 33
Could you try if changing this helps? Thanks!
Hey @chescored, thanks for reaching out. It looks like there's a similar issue reported in another thread.
In your gradles (main and launcher Templates), try this: minSdkVersion 22 targetSDKversion 32 compileSDKversion 33
Could you try if changing this helps? Thanks!
As soon as I have a little time I'll try it and comment if it works.
Hey @chescored, thanks for reaching out. It looks like there's a similar issue reported in another thread.
In your gradles (main and launcher Templates), try this: minSdkVersion 22 targetSDKversion 32 compileSDKversion 33
Could you try if changing this helps? Thanks!
As soon as I have a little time I'll try it and comment if it works.
It does not work for me:
`WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33
This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32
This warning can be suppressed by adding android.suppressUnsupportedCompileSdk=33 to this project's gradle.properties
The build will continue, but you are strongly encouraged to update your project to use a newer Android Gradle Plugin that has been tested with compileSdk = 33
Task :launcher:preBuild UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:preBuild UP-TO-DATE Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE Task :unityLibrary:preBuild UP-TO-DATE Task :unityLibrary:FirebaseApp.androidlib:preDebugBuild UP-TO-DATE Task :launcher:preDebugBuild UP-TO-DATE Task :unityLibrary:preDebugBuild UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:preDebugBuild UP-TO-DATE Task :launcher:mergeDebugNativeDebugMetadata NO-SOURCE Task :unityLibrary:FirebaseApp.androidlib:compileDebugAidl NO-SOURCE Task :unityLibrary:packageDebugRenderscript NO-SOURCE Task :unityLibrary:xrmanifest.androidlib:compileDebugAidl NO-SOURCE Task :unityLibrary:compileDebugAidl NO-SOURCE Task :unityLibrary:xrmanifest.androidlib:packageDebugRenderscript NO-SOURCE Task :unityLibrary:FirebaseApp.androidlib:packageDebugRenderscript NO-SOURCE Task :unityLibrary:xrmanifest.androidlib:writeDebugAarMetadata Task :launcher:generateDebugBuildConfig Task :unityLibrary:writeDebugAarMetadata Task :unityLibrary:FirebaseApp.androidlib:writeDebugAarMetadata Task :unityLibrary:generateDebugResValues Task :launcher:compileDebugAidl NO-SOURCE Task :unityLibrary:compileDebugRenderscript NO-SOURCE Task :unityLibrary:FirebaseApp.androidlib:compileDebugRenderscript NO-SOURCE Task :unityLibrary:generateDebugResources Task :unityLibrary:xrmanifest.androidlib:compileDebugRenderscript NO-SOURCE Task :launcher:compileDebugRenderscript NO-SOURCE Task :unityLibrary:FirebaseApp.androidlib:generateDebugResValues Task :unityLibrary:xrmanifest.androidlib:generateDebugResValues Task :unityLibrary:FirebaseApp.androidlib:generateDebugResources Task :unityLibrary:xrmanifest.androidlib:generateDebugResources Task :launcher:javaPreCompileDebug Task :launcher:generateDebugResValues Task :launcher:generateDebugResources Task :launcher:createDebugCompatibleScreenManifests Task :launcher:extractDeepLinksDebug Task :unityLibrary:xrmanifest.androidlib:packageDebugResources Task :unityLibrary:xrmanifest.androidlib:extractDeepLinksDebug Task :launcher:mergeDebugShaders Task :launcher:compileDebugShaders NO-SOURCE Task :launcher:generateDebugAssets UP-TO-DATE Task :launcher:processDebugJavaRes NO-SOURCE Task :unityLibrary:FirebaseApp.androidlib:packageDebugResources Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksDebug Task :unityLibrary:packageDebugResources Task :unityLibrary:extractDeepLinksDebug Task :unityLibrary:FirebaseApp.androidlib:processDebugManifest Task :unityLibrary:xrmanifest.androidlib:processDebugManifest Task :unityLibrary:processDebugManifest Task :unityLibrary:xrmanifest.androidlib:parseDebugLocalResources Task :unityLibrary:FirebaseApp.androidlib:compileDebugLibraryResources Task :unityLibrary:generateDebugBuildConfig Task :unityLibrary:FirebaseApp.androidlib:parseDebugLocalResources Task :unityLibrary:parseDebugLocalResources Task :unityLibrary:javaPreCompileDebug Task :unityLibrary:mergeDebugShaders Task :unityLibrary:compileDebugShaders NO-SOURCE Task :unityLibrary:generateDebugAssets UP-TO-DATE Task :launcher:checkDebugAarMetadata FAILED Task :launcher:checkDebugDuplicateClasses Task :unityLibrary:FirebaseApp.androidlib:generateDebugRFile Task :unityLibrary:xrmanifest.androidlib:generateDebugRFile Task :unityLibrary:compileDebugLibraryResources Task :unityLibrary:packageDebugAssets 34 actionable tasks: 34 executed
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)`
Thanks for checking, @chescored. The error message shows that you need to update your Android Gradle plugin. You need to check the Version compatibility chart in the official Unity documentations and use the specific Unity Editor version accordingly:
Unity version | Gradle version | Android Gradle Plug-in version |
---|---|---|
2022.3 (starting from 2022.3.38f1) | 7.5.1 | 7.4.2 |
2022.3 (up and including 2022.3.37f1) | 7.2 | 7.1.2 |
2021.32020.3 (starting from 2020.3.15f1) | 6.1.1 | 4.0.1 |
2020.3 (up to and including 2020.3.14f1) | 5.6.4 | 4.0.1 |
That said, the issue is not a Firebase SDK issue, but rather more on configuration setup. If you have further concerns, please reach out to the official Unity forum or the developer community forum for Meta.
I'll go ahead and close this thread. Thanks!
Well, it still doesn't work, I have installed the Unity version 2022.3.38f but it still gives errors, I have changed the gradle files and there is no way.
Ergo Firebase only works with Oculus Quest up to version 11.6.0 as I mentioned.
It seems upon checking the AGP release notes, compileSdkVersion 34 requires AGP version 8.2
. And it looks like only Unity Editor 6000 has support for this AGP version. As far as I know currently not all Firebase products work correctly with Unity 6000. Could you share what Firebase product are you using?
For now, let's keep this thread open.
It seems upon checking the AGP release notes, compileSdkVersion 34 requires AGP version
8.2
. And it looks like only Unity Editor 6000 has support for this AGP version. As far as I know currently not all Firebase products work correctly with Unity 6000. Could you share what Firebase product are you using?For now, we'll keep this thread open.
The version of Unity that I use is 2022.3.38f, Unity 6 for Oculus Quest is currently reporting problems and is currently practically unusable. To your question, I am using Firebase Analytics, Auth and Firestore. All the best.
Thanks for the extra details. Could you try testing with Unity Editor version 2023.2.20f1
?
By the way, I noticed that your build has pushed through, but you likely need to add android.suppressUnsupportedCompileSdk=33
in the gradle.properties:
`WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33
This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32
This warning can be suppressed by adding android.suppressUnsupportedCompileSdk=33 to this project's gradle.properties
The build will continue, but you are strongly encouraged to update your project to use a newer Android Gradle Plugin that has been tested with compileSdk = 33
If however, you'd like to avoid this type of change, then we'll likely need to wait until a newer release of Unity Editor supports AGP version 8.1
for compileSdkVersion 33
.
Thanks for the extra details. Could you try testing with Unity Editor version
2023.2.20f1
?By the way, I noticed that your build has pushed through, but you likely need to add
android.suppressUnsupportedCompileSdk=33
in the gradle.properties:`WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33
This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32
This warning can be suppressed by adding android.suppressUnsupportedCompileSdk=33 to this project's gradle.properties
The build will continue, but you are strongly encouraged to update your project to use a newer Android Gradle Plugin that has been tested with compileSdk = 33
If however, you'd like to avoid this type of change, then we'll likely need to wait until a newer release of Unity Editor supports AGP version
8.1
forcompileSdkVersion 33
.
I'll try again with your instructions, but let me do it for tomorrow 😝, I'm from Spain and I've been working on this since 6 in the morning, as soon as I have the test done I'll let you know, greetings. And thank you very much for your time and help.
No worries, @chescored. I'm also curious to see what happens. Let me know if it works!
I will now describe in as much detail as possible the steps I have taken.
I import FirebaseAnalytics from Assets -> Import Package -> Custom Package
Firebase has been added to the project but nothing else happens, it doesn't ask to Enable Auto-resolution and Androix.
It also does not generate the FirebaseApp or the build custom gradle, main and settings templates. The External Dependency Manager has not been created in the assets menu either.
The Minimum API Level is 29 and the default Target API Level is 34.
I have looked at the Unity 2022.3.38f SDK folders under platforms it seems correct.
But the build-tools is 32, I have worked with Android for many years and my memory fails me but I thought there should be a build tools at least for 34, which is the one it is being compiled on, right?
The fact that it does not generate in principle is not a problem since it is common when Firebase is implemented, so I restart Unity.
And now the Android Auto-resolution screen appears. And the FirebaseApp, build custom gradle, main and settings templates are generated. But the AndroiX still do not appear.
I generate a Build without problems and upload the APK to the Meta Quets board, leaving the error message that it is compiled in version 34 and 32 is necessary.
I change to version 32 in Unity as Target API Level and compile again. It asks me to load at 32
And the errors begin:
Task :unityLibrary:preBuild UP-TO-DATE Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:preBuild UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:preDebugBuild UP-TO-DATE Task :unityLibrary:preDebugBuild UP-TO-DATE Task :unityLibrary:FirebaseApp.androidlib:preDebugBuild UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:compileDebugAidl NO-SOURCE Task :launcher:preBuild UP-TO-DATE Task :launcher:preDebugBuild UP-TO-DATE Task :unityLibrary:packageDebugRenderscript NO-SOURCE Task :unityLibrary:FirebaseApp.androidlib:compileDebugAidl NO-SOURCE Task :launcher:mergeDebugNativeDebugMetadata NO-SOURCE Task :launcher:compileDebugRenderscript NO-SOURCE Task :unityLibrary:xrmanifest.androidlib:writeDebugAarMetadata UP-TO-DATE Task :unityLibrary:writeDebugAarMetadata UP-TO-DATE Task :unityLibrary:FirebaseApp.androidlib:writeDebugAarMetadata UP-TO-DATE Task :launcher:generateDebugBuildConfig UP-TO-DATE Task :unityLibrary:FirebaseApp.androidlib:packageDebugRenderscript NO-SOURCE Task :unityLibrary:compileDebugAidl NO-SOURCE Task :unityLibrary:xrmanifest.androidlib:packageDebugRenderscript NO-SOURCE Task :unityLibrary:FirebaseApp.androidlib:compileDebugRenderscript NO-SOURCE Task :unityLibrary:generateDebugResValues UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:compileDebugRenderscript NO-SOURCE Task :unityLibrary:xrmanifest.androidlib:generateDebugResValues UP-TO-DATE Task :unityLibrary:compileDebugRenderscript NO-SOURCE Task :unityLibrary:FirebaseApp.androidlib:generateDebugResValues UP-TO-DATE Task :launcher:javaPreCompileDebug UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:generateDebugResources UP-TO-DATE Task :unityLibrary:generateDebugResources UP-TO-DATE Task :unityLibrary:FirebaseApp.androidlib:generateDebugResources UP-TO-DATE Task :launcher:compileDebugAidl NO-SOURCE Task :unityLibrary:FirebaseApp.androidlib:packageDebugResources UP-TO-DATE Task :unityLibrary:packageDebugResources UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:packageDebugResources UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:extractDeepLinksDebug UP-TO-DATE Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksDebug UP-TO-DATE Task :unityLibrary:extractDeepLinksDebug UP-TO-DATE Task :unityLibrary:FirebaseApp.androidlib:processDebugManifest UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:processDebugManifest UP-TO-DATE Task :unityLibrary:compileDebugLibraryResources UP-TO-DATE Task :launcher:generateDebugResValues UP-TO-DATE Task :launcher:mapDebugSourceSetPaths UP-TO-DATE Task :launcher:generateDebugResources UP-TO-DATE Task :launcher:mergeDebugResources UP-TO-DATE Task :launcher:createDebugCompatibleScreenManifests UP-TO-DATE Task :launcher:extractDeepLinksDebug UP-TO-DATE Task :launcher:mergeDebugShaders UP-TO-DATE Task :launcher:compileDebugShaders NO-SOURCE Task :launcher:generateDebugAssets UP-TO-DATE Task :launcher:processDebugJavaRes NO-SOURCE Task :launcher:checkDebugAarMetadata FAILED Task :launcher:checkDebugDuplicateClasses UP-TO-DATE Task :unityLibrary:processDebugManifest Task :unityLibrary:xrmanifest.androidlib:parseDebugLocalResources Task :unityLibrary:FirebaseApp.androidlib:parseDebugLocalResources Task :unityLibrary:parseDebugLocalResources 29 actionable tasks: 5 executed, 24 up-to-date
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
FAILURE: Build completed with 2 failures.
What went wrong: Execution failed for task ':launcher:checkDebugAarMetadata'.
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction 5 issues were found when checking AAR metadata:
Dependency 'androidx.privacysandbox.ads:ads-adservices-java:1.0.0-beta05' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.
:launcher is currently compiled against android-32.
Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33.
Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).
Dependency 'androidx.privacysandbox.ads:ads-adservices:1.0.0-beta05' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.
:launcher is currently compiled against android-32.
Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33.
Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).
Dependency 'androidx.core:core-ktx:1.9.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.
:launcher is currently compiled against android-32.
Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33.
Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).
Dependency 'androidx.core:core:1.9.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.
:launcher is currently compiled against android-32.
Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33.
Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).
Dependency 'androidx.annotation:annotation-experimental:1.3.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.
:launcher is currently compiled against android-32.
Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33.
Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).
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.
What went wrong: java.lang.StackOverflowError (no error message)
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.
Get more help at https://help.gradle.org
BUILD FAILED in 5s
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
CommandInvokationFailure: Gradle build failed. C:\Program Files\Unity\Hub\Editor\2022.3.38f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2022.3.38f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.5.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleDebug"
Environment Variables: PROCESSOR_ARCHITECTURE = AMD64 AMPLITUDE_API_KEY_YELLOWBUCKET_DEV = ANDROID_NDK_ROOT = C:\Program Files\Unity\Hub\Editor\2022.3.38f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK DriverData = C:\Windows\System32\Drivers\DriverData USERDOMAIN = CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files COMPUTERNAME = DEBUG_ENV_VAR = UnityHub LOGONSERVER = AMPLITUDE_TOKEN_GREENBUCKET_PROD = PUBLIC = C:\Users\Public ProgramData = C:\ProgramData SESSIONNAME = Console AMPLITUDE_TOKEN_YELLOWBUCKET_PROD = ALLUSERSPROFILE = C:\ProgramData SystemRoot = C:\Windows windir = C:\Windows AMPLITUDE_API_KEY_REDBUCKET_DEV = ProgramFiles(x86) = C:\Program Files (x86) ProgramW6432 = C:\Program Files OS = Windows_NT PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 158 Stepping 10, GenuineIntel HOMEPATH = \Users\chesc FPS_BROWSER_USER_PROFILE_STRING = Default AMPLITUDE_TOKEN_REDBUCKET_DEV = CHROME_CRASHPAD_PIPE_NAME = \.\pipe\crashpad_6176_LUZZDQHLIPCPABIG PROCESSOR_LEVEL = 6 CommonProgramFiles = C:\Program Files\Common Files JAVA_HOME = C:\Program Files\Unity\Hub\Editor\2022.3.38f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK USERDOMAIN_ROAMINGPROFILE = TEMP = C:\Users\chesc\AppData\Local\Temp ProgramFiles = C:\Program Files CommonProgramW6432 = C:\Program Files\Common Files AMPLITUDE_TOKEN_YELLOWBUCKET_DEV = AMPLITUDE_API_KEY_GREENBUCKET_DEV = AMPLITUDE_API_KEY_REDBUCKET_PROD = HOMEDRIVE = C: AMPLITUDE_API_KEY_STAGING = USERNAME = chesc OneDrive = C:\Users\chesc\OneDrive AMPLITUDE_API_KEY_YELLOWBUCKET_PROD = PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC AMPLITUDE_TOKEN_REDBUCKET_PROD = jTIgKs5KTZOjiqEEVdZFbgo_VRhABduL __PSLockDownPolicy = 0 OculusBase = C:\Program Files\Oculus\ NVM_HOME = C:\Users\chesc\AppData\Roaming\nvm NUMBER_OF_PROCESSORS = 6 AMPLITUDE_TOKEN_GREENBUCKET_DEV = AMPLITUDE_DEPLOYMENT_KEY_RED_BUCKET_DEV = AMPLITUDE_API_KEY_GREENBUCKET_PROD = ComSpec = C:\Windows\system32\cmd.exe ORIGINAL_XDG_CURRENT_DESKTOP = undefined NVM_SYMLINK = C:\Program Files\nodejs PROCESSOR_REVISION = 9e0a AMPLITUDE_DEPLOYMENT_KEY_RED_BUCKET_PROD = TMP = C:\Users\chesc\AppData\Local\Temp SystemDrive = C: AMPLITUDE_API_KEY = FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer SENTRY_ACCESS_TOKEN = APPDATA = C:\Users\chesc\AppData\Roaming Path = C:\Program Files\Oculus\Support\oculus-runtime;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Meta Quest Developer Hub\resources\bin;C:\Users\chesc\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\nodejs\;C:\Users\chesc\AppData\Local\Microsoft\WindowsApps;C:\Users\chesc\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\chesc\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Users\chesc\AppData\Roaming\npm EFC_3500 = 1 PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files\Intel\Wired Networking\ LOCALAPPDATA = C:\Users\chesc\AppData\Local USERPROFILE = C:\Users\chesc WOOTRIC_CLIENT_TOKEN = NPS-aa8be4c3
stderr[
FAILURE: Build completed with 2 failures.
What went wrong: Execution failed for task ':launcher:checkDebugAarMetadata'.
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction 5 issues were found when checking AAR metadata:
Dependency 'androidx.privacysandbox.ads:ads-adservices-java:1.0.0-beta05' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.
:launcher is currently compiled against android-32.
Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33.
Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).
Dependency 'androidx.privacysandbox.ads:ads-adservices:1.0.0-beta05' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.
:launcher is currently compiled against android-32.
Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33.
Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).
Dependency 'androidx.core:core-ktx:1.9.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.
:launcher is currently compiled against android-32.
Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33.
Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).
Dependency 'androidx.core:core:1.9.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.
:launcher is currently compiled against android-32.
Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33.
Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).
Dependency 'androidx.annotation:annotation-experimental:1.3.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.
:launcher is currently compiled against android-32.
Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33.
Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).
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.
What went wrong: java.lang.StackOverflowError (no error message)
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.
Get more help at https://help.gradle.org
BUILD FAILED in 5s ] stdout[
Task :unityLibrary:preBuild UP-TO-DATE Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:preBuild UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:preDebugBuild UP-TO-DATE Task :unityLibrary:preDebugBuild UP-TO-DATE Task :unityLibrary:FirebaseApp.androidlib:preDebugBuild UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:compileDebugAidl NO-SOURCE Task :launcher:preBuild UP-TO-DATE Task :launcher:preDebugBuild UP-TO-DATE Task :unityLibrary:packageDebugRenderscript NO-SOURCE Task :unityLibrary:FirebaseApp.androidlib:compileDebugAidl NO-SOURCE Task :launcher:mergeDebugNativeDebugMetadata NO-SOURCE Task :launcher:compileDebugRenderscript NO-SOURCE Task :unityLibrary:xrmanifest.androidlib:writeDebugAarMetadata UP-TO-DATE Task :unityLibrary:writeDebugAarMetadata UP-TO-DATE Task :unityLibrary:FirebaseApp.androidlib:writeDebugAarMetadata UP-TO-DATE Task :launcher:generateDebugBuildConfig UP-TO-DATE Task :unityLibrary:FirebaseApp.androidlib:packageDebugRenderscript NO-SOURCE Task :unityLibrary:compileDebugAidl NO-SOURCE Task :unityLibrary:xrmanifest.androidlib:packageDebugRenderscript NO-SOURCE Task :unityLibrary:FirebaseApp.androidlib:compileDebugRenderscript NO-SOURCE Task :unityLibrary:generateDebugResValues UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:compileDebugRenderscript NO-SOURCE Task :unityLibrary:xrmanifest.androidlib:generateDebugResValues UP-TO-DATE Task :unityLibrary:compileDebugRenderscript NO-SOURCE Task :unityLibrary:FirebaseApp.androidlib:generateDebugResValues UP-TO-DATE Task :launcher:javaPreCompileDebug UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:generateDebugResources UP-TO-DATE Task :unityLibrary:generateDebugResources UP-TO-DATE Task :unityLibrary:FirebaseApp.androidlib:generateDebugResources UP-TO-DATE Task :launcher:compileDebugAidl NO-SOURCE Task :unityLibrary:FirebaseApp.androidlib:packageDebugResources UP-TO-DATE Task :unityLibrary:packageDebugResources UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:packageDebugResources UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:extractDeepLinksDebug UP-TO-DATE Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksDebug UP-TO-DATE Task :unityLibrary:extractDeepLinksDebug UP-TO-DATE Task :unityLibrary:FirebaseApp.androidlib:processDebugManifest UP-TO-DATE Task :unityLibrary:xrmanifest.androidlib:processDebugManifest UP-TO-DATE Task :unityLibrary:compileDebugLibraryResources UP-TO-DATE Task :launcher:generateDebugResValues UP-TO-DATE Task :launcher:mapDebugSourceSetPaths UP-TO-DATE Task :launcher:generateDebugResources UP-TO-DATE Task :launcher:mergeDebugResources UP-TO-DATE Task :launcher:createDebugCompatibleScreenManifests UP-TO-DATE Task :launcher:extractDeepLinksDebug UP-TO-DATE Task :launcher:mergeDebugShaders UP-TO-DATE Task :launcher:compileDebugShaders NO-SOURCE Task :launcher:generateDebugAssets UP-TO-DATE Task :launcher:processDebugJavaRes NO-SOURCE Task :launcher:checkDebugAarMetadata FAILED Task :launcher:checkDebugDuplicateClasses UP-TO-DATE Task :unityLibrary:processDebugManifest Task :unityLibrary:xrmanifest.androidlib:parseDebugLocalResources Task :unityLibrary:FirebaseApp.androidlib:parseDebugLocalResources Task :unityLibrary:parseDebugLocalResources 29 actionable tasks: 5 executed, 24 up-to-date ] exit code: 1 UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <2fb5bcd8e6024287bf092a8fc109e39b>:0) UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <2fb5bcd8e6024287bf092a8fc109e39b>:0) UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <2fb5bcd8e6024287bf092a8fc109e39b>:0) UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action
1[T] progress, System.String error) (at <2fb5bcd8e6024287bf092a8fc109e39b>:0) UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action
1[T] progress) (at <2fb5bcd8e6024287bf092a8fc109e39b>:0) Rethrow as GradleInvokationException: Gradle build failed UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at <2fb5bcd8e6024287bf092a8fc109e39b>:0) UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <2fb5bcd8e6024287bf092a8fc109e39b>:0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <2fb5bcd8e6024287bf092a8fc109e39b>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Build completed with a result of 'Failed' in 110 seconds (109708 ms) 3 errors UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
I change the mainTemplate and point the Unity build to Target API Level 33:
// Android Resolve Exclusions End android { namespace "com.unity3d.player" ndkPath "NDKPATH" compileSdkVersion 33 buildToolsVersion 'BUILDTOOLS'
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
defaultConfig {
minSdkVersion **MINSDKVERSION**
targetSdkVersion 32
ndk {
abiFilters **ABIFILTERS**
}
versionCode **VERSIONCODE**
versionName '**VERSIONNAME**'
consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
}
Now the compilation goes well and I upload the APK to the Meta Quest dashboard and the problem of:
Android Target SDK version is 33, but should be 32 or lower (targetSdkVersion in AndroidManifest.xml).
In case the flute sounds, I add in the AndroidManifest that Meta generates:
<uses-sdk android:compileSdkVersion="33" android:minSdkVersion="29" android:targetSdkVersion="32" />
But on the dashboard it gives the same version 33 error again
Using Firebase version 11.6.0 everything goes smoothly. As soon as you add FirebaseAnalytics, the windows appear to resolve the dependencies and the androidx are generated without problem, being able to compile in 32 and upload the APK to the Meta board.
@argzdev can I use 11.6.0 in the medium term until a solution is found for the game I am developing?
The problems start in 11.7.0 if that's any clue...
All the best.
Hey @chescored, sorry for the delayed response here. I noticed some similarities with a few issues. Could you try the solution provided here.
Export the Unity project to Android Studio, change Gradle and AGP version to 8+. (This page says Android 34 requires AGP 8.1.1+). Change min SDK from 23 to 24.
A quick tip, you can use the Tools > AGP Upgrade Assistant
in the Android Studio to help you update your AGP seamlessly.
Hey @chescored. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@chescored if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.
Description
Firebase and Meta Quest users are faced with a terrible problem.
Starting with Firebase version 11.7.0, the compileSdkVersion is 33 when the Meta Quest compileSdkVersion is 32.
As long as no version of the APK is uploaded to the Meta dashboard, no problem is noticed, since everything compiles and runs on the glasses without problems. The problem comes when the application is uploaded to the meta board that detects that it has been compiled in a higher version, compileSdkVersion = 33 or compileSdkVersion = 34 depending on the version we have installed in Unity.
Has any colleague managed to fix this problem? If not, which is what I fear, can the Firebase developers solve it?
A greeting and thanks in advance.
Reproducing the issue
No response
Firebase Unity SDK Version
11.7.0+
Unity editor version
2022.3.x
Installation Method
.unitypackage
Problematic Firebase Component(s)
All
Other Firebase Component(s) in use
No response
Additional SDKs you are using
Meta XR
Targeted Platform(s)
Android
Unity editor platform
Windows
Scripting Runtime
IL2CPP
Release Distribution Type
Pre-built SDK from https://firebase.google.com/download/unity
Relevant Log Output
No response
If using CocoaPods for Apple platforms, the project's Podfile.lock
Expand
Podfile.lock
snippet```yml 👀 Replace this line with the contents of your Podfile.lock! ```