Open bedirhanblt54 opened 10 months ago
@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?
@hussainraodev
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. Next, I entered the baseProjectTemplate folder and found that the Android Gradle Plug-in version was 7.1.2 (image_2). I needed to use Gradle version 7.2 for this Plug-in version (I obtained this information from "https://docs.unity3d.com/Manual/android-gradle-overview.html"). I downloaded Gradle 7.2 from "https://gradle.org/releases/" (choose the "binary-only" option and extract it from the ZIP file). I used this in my Unity project as follows: Settings > External Tools (usage is shown in image_3). After that, I disable the Custom Base Gradle Template option, and finally, I performed Assets > ExternalDependencyManager > Android Resolver > Resolve or Force Resolve. The issue was resolved, and now I could build
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'. Hope this resolves happy coding.
@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.
What went wrong: 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.
What went wrong: 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