-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Gradle Errors #329
Comments
@bedirhanblt54 Is it reproducible in an empty project with just the AppLovin SDK and forementioned adapters? |
@AntonPetrov83 I tried, but the result is the same. |
i am also facing the same issue, any solution? |
For me, it worked like this: Firstly, I upgraded Unity to version 2022.3.17f1, and then I configured my Build Settings > Player Settings > Publishing Settings as shown in the image_1. I forgot to mention, set the Target API level to 33. |
@bedirhanblt54 Thanks brother, issue solved by upgrading unity version to 2022. |
if you are using unity 2020 you need atleast gradle 6.7 or above and add its corresponding classpath in baseprojecttemplate.gradle file . For Example I used gradle 6.9.3 and added the following path classpath 'com.android.tools.build:gradle:4.2.1'. |
@Moizkhan999 Thanks brother, i will try this out. |
It supports android 14 api level 34 while we choose api level 33 ? |
This issue is stale because it has been open for 30 days with no activity. |
MAX Plugin Version
6.1.2
Unity Version
2020.3.34f1
Device/Platform Info
Android
Current Behavior
I integrated the AppLovin MAX SDK into my Unity project, and there were no issues; I could build successfully. Later, I downloaded the Google AdMob and Unity Ads adapters, and since then, I've been encountering Gradle errors during the build process. Unfortunately, I haven't been able to resolve this issue for a long time.
"I wrote my first issue, and it seems a bit complicated. I apologize for any confusion."
Expected Behavior
No response
How to Reproduce
"Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)"`
`"Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
FAILURE: Build failed with an exception.
Could not determine the dependencies of task ':launcher:lintVitalRelease'.
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
BU??LD FAILED in 12s
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)"`
`"CommandInvokationFailure: Gradle build failed.
/Applications/Unity/Hub/Editor/2020.3.34f1/PlaybackEngines/AndroidPlayer/OpenJDK/bin/java -classpath "/Applications/Unity/Hub/Editor/2020.3.34f1/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
stderr[
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
FAILURE: Build failed with an exception.
Could not determine the dependencies of task ':launcher:lintVitalRelease'.
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
BU??LD FAILED in 12s
]
stdout[
Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details
Additional Info
No response
The text was updated successfully, but these errors were encountered: