Closed sarebots closed 2 years ago
UPDATE: I tried building after removing all Mediation Network SDKs but it still doesn't work. So I guess the problem lies with AppLovin SDK itself. Also, note that I'm using the following custom base gradle template:
`// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
allprojects { buildscript { repositories {ARTIFACTORYREPOSITORY google() jcenter() }
dependencies {
// If you are changing the Android Gradle Plugin version, make sure it is compatible with the Gradle version preinstalled with Unity
// See which Gradle version is preinstalled with Unity here https://docs.unity3d.com/Manual/android-gradle-overview.html
// See official Gradle and Android Gradle Plugin compatibility table here https://developer.android.com/studio/releases/gradle-plugin#updating-gradle
// To specify a custom Gradle version in Unity, go do "Preferences > External Tools", uncheck "Gradle Installed with Unity (recommended)" and specify a path to a custom Gradle version
classpath 'com.android.tools.build:gradle:3.4.3'
**BUILD_SCRIPT_DEPS**
}
}
repositories {**ARTIFACTORYREPOSITORY**
google()
jcenter()
flatDir {
dirs "${project(':unityLibrary').projectDir}/libs"
}
}
}
task clean(type: Delete) { delete rootProject.buildDir } `
UPDATE 2: Downgrading AppLovin to v5.3.1 fixed the issue.
downgrading didnt solve it for me
it is the facebook plugin . remove facebook adapter and things work damn .
Is the v5.3.1 still available somewhere to download?
Is the v5.3.1 still available somewhere to download?
I just edited the download url from official AppLovin Max Unity SDK download page: v5.3.1
I just met same issue, in my case i fixed it by download Build tool 31 and restart Unity
Is the v5.3.1 still available somewhere to download?
I just edited the download url from official AppLovin Max Unity SDK download page: v5.3.1
Thanks for providing the 5.3.1 link. After switching to the previous version Android builds work again.
Thanks for reporting this issue. We've just released Unity Plugin version 5.4.2 that is backwards compatible with Android SDK versions earlier than 31. Let us know you're still experiencing build issues.
I tried integrate v5.4.2 and I can't build the apk but downgraded to v5.3.1 all works
Could you share the error you're seeing? You might need to update your Gradle version.
5.3.1 works. When upgrading to 5.4.2 the following error occurs:
Configure project :launcher WARNING: The option setting 'android.enableR8=false' is deprecated. It will be removed in version 5.0 of the Android Gradle plugin. You will no longer be able to disable R8
AppLovin Quality Service Plug-in for Gradle and Android Studio Version 4.4.4 Copyright (c) 2022 AppLovin Ltd. All rights reserved.
[SafeDK] Your project has been updated to support Multi-Dex! With Multi-Dex support you can use as many methods as you like in your application (no 65K method limit) Exception while marshalling C:\Program Files\Unity\Hub\Editor\2020.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\30.0.2\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2020.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2020.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-29\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2020.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-30\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2020.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE Task :unityLibrary:preBuild UP-TO-DATE Task :unityLibrary:IronSource.plugin:preBuild UP-TO-DATE Task :launcher:preBuild UP-TO-DATE Task :unityLibrary:preReleaseBuild UP-TO-DATE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE Task :unityLibrary:IronSource.plugin:preReleaseBuild UP-TO-DATE Task :launcher:preReleaseBuild UP-TO-DATE Task :unityLibrary:packageReleaseRenderscript NO-SOURCE Task :unityLibrary:IronSource.plugin:compileReleaseAidl NO-SOURCE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE Task :launcher:generateReleaseBuildConfig UP-TO-DATE Task :launcher:compileReleaseRenderscript NO-SOURCE Task :unityLibrary:compileReleaseAidl NO-SOURCE Task :launcher:compileReleaseAidl NO-SOURCE Task :launcher:javaPreCompileRelease UP-TO-DATE Task :launcher:generateReleaseResValues UP-TO-DATE Task :launcher:generateReleaseResources UP-TO-DATE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE Task :unityLibrary:IronSource.plugin:packageReleaseRenderscript NO-SOURCE Task :unityLibrary:generateReleaseResValues UP-TO-DATE Task :unityLibrary:IronSource.plugin:compileReleaseRenderscript NO-SOURCE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE Task :launcher:extractDeepLinksRelease UP-TO-DATE Task :unityLibrary:compileReleaseRenderscript NO-SOURCE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues Task :unityLibrary:IronSource.plugin:generateReleaseResValues Task :unityLibrary:IronSource.plugin:generateReleaseResources Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources Task :unityLibrary:generateReleaseResources UP-TO-DATE Task :unityLibrary:packageReleaseResources UP-TO-DATE Task :unityLibrary:IronSource.plugin:packageReleaseResources Task :unityLibrary:IronSource.plugin:extractDeepLinksRelease Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:extractDeepLinksRelease Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE Task :unityLibrary:javaPreCompileRelease UP-TO-DATE Task :unityLibrary:IronSource.plugin:parseReleaseLocalResources Task :unityLibrary:IronSource.plugin:generateReleaseBuildConfig Task :unityLibrary:IronSource.plugin:compileReleaseLibraryResources Task :unityLibrary:IronSource.plugin:javaPreCompileRelease Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseLibraryResources Task :unityLibrary:processReleaseManifest Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig Task :unityLibrary:IronSource.plugin:processReleaseManifest Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:prepareLintJarForPublish UP-TO-DATE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:parseReleaseLocalResources Task :unityLibrary:IronSource.plugin:prepareLintJarForPublish UP-TO-DATE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest Task :unityLibrary:IronSource.plugin:generateReleaseRFile Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease Task :unityLibrary:mergeReleaseShaders UP-TO-DATE Task :unityLibrary:compileReleaseShaders NO-SOURCE Task :unityLibrary:generateReleaseAssets UP-TO-DATE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders NO-SOURCE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseAssets UP-TO-DATE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseAssets Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile Task :unityLibrary:IronSource.plugin:compileReleaseJavaWithJavac Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibCompileToJarRelease Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibRuntimeToJarRelease Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibResRelease NO-SOURCE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJniLibFolders Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseNativeLibs Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:stripReleaseDebugSymbols NO-SOURCE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:copyReleaseJniLibsProjectOnly Task :unityLibrary:IronSource.plugin:mergeReleaseShaders Task :unityLibrary:IronSource.plugin:compileReleaseShaders NO-SOURCE Task :unityLibrary:IronSource.plugin:generateReleaseAssets UP-TO-DATE Task :unityLibrary:IronSource.plugin:packageReleaseAssets Task :unityLibrary:IronSource.plugin:processReleaseJavaRes NO-SOURCE Task :unityLibrary:IronSource.plugin:bundleLibResRelease NO-SOURCE Task :unityLibrary:IronSource.plugin:mergeReleaseJniLibFolders Task :unityLibrary:packageReleaseAssets Task :unityLibrary:processReleaseJavaRes NO-SOURCE Task :unityLibrary:bundleLibResRelease NO-SOURCE Task :unityLibrary:IronSource.plugin:bundleLibCompileToJarRelease Task :unityLibrary:IronSource.plugin:bundleLibRuntimeToJarRelease Task :unityLibrary:IronSource.plugin:mergeReleaseNativeLibs Task :unityLibrary:IronSource.plugin:stripReleaseDebugSymbols NO-SOURCE Task :unityLibrary:IronSource.plugin:copyReleaseJniLibsProjectOnly Task :launcher:processReleaseManifest Task :launcher:prepareLintJar UP-TO-DATE Task :unityLibrary:mergeReleaseJniLibFolders Task :unityLibrary:generateReleaseRFile Task :launcher:checkReleaseDuplicateClasses Task :launcher:mergeReleaseShaders UP-TO-DATE Task :launcher:compileReleaseShaders NO-SOURCE Task :launcher:generateReleaseAssets UP-TO-DATE
Task :unityLibrary:compileReleaseJavaWithJavac
Task :unityLibrary:mergeReleaseNativeLibs Task :unityLibrary:stripReleaseDebugSymbols Task :unityLibrary:copyReleaseJniLibsProjectOnly Task :unityLibrary:bundleLibCompileToJarRelease Task :unityLibrary:bundleLibRuntimeToJarRelease Task :launcher:mergeReleaseResources Task :launcher:processReleaseResources Task :launcher:compileReleaseJavaWithJavac Task :launcher:compileReleaseSources Task :launcher:lintVitalRelease Task :launcher:mergeReleaseAssets Task :launcher:processReleaseJavaRes NO-SOURCE
Task :launcher:dexBuilderRelease FAILED
Task :launcher:mergeReleaseJavaResource
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.1.1/userguide/command_line_interface.html#sec:command_line_warnings 71 actionable tasks: 53 executed, 18 up-to-date
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()
Could you try update your Gradle version using the instructions in this doc? https://developers.google.com/ar/develop/unity/android-11-build
I just upgraded my AppLovin Max SDK and the android builds are now failing. I'm using Unity 2019.4.38f1 and AppLovin Max version 5.4.0. I also upgraded the following Mediated networks:
Facebook, Fyber, Admob, IronSource, Mintegral, Unity Ads.
I'm not sure which specific update caused the build process to fail, but the following is the error I get:
`
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.8.3/userguide/command_line_interface.html#sec:command_line_warnings 91 actionable tasks: 68 executed, 23 up-to-date
UnityEngine.GUIUtility:ProcessEvent (int,intptr) `