AppLovin / AppLovin-MAX-Unity-Plugin

128 stars 35 forks source link

WARNING: The option setting 'android.enableR8=false' is deprecated. #263

Open kfs121 opened 1 year ago

kfs121 commented 1 year ago

MAX Plugin Version

5.10.1

Unity Version

2020.3.47.f1

Device/Platform Info

Window 10

Current Behavior

I can't build.

1 first show this failed masage

and console 2

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.11.1 Copyright (c) 2023 AppLovin Ltd. All rights reserved.

Task :unityLibrary:preBuild UP-TO-DATE Task :launcher:preBuild UP-TO-DATE Task :unityLibrary:preReleaseBuild UP-TO-DATE Task :launcher:preReleaseBuild UP-TO-DATE Task :unityLibrary:packageReleaseRenderscript NO-SOURCE Task :launcher:generateReleaseResValues UP-TO-DATE Task :launcher:compileReleaseRenderscript NO-SOURCE Task :launcher:generateReleaseResources UP-TO-DATE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.androidlib:preBuild UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.androidlib:preReleaseBuild UP-TO-DATE Task :unityLibrary:unity-android-resources:preBuild UP-TO-DATE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseRenderscript NO-SOURCE Task :unityLibrary:generateReleaseResValues UP-TO-DATE Task :unityLibrary:unity-android-resources:preReleaseBuild UP-TO-DATE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseRenderscript NO-SOURCE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE Task :unityLibrary:unity-android-resources:packageReleaseRenderscript NO-SOURCE Task :unityLibrary:compileReleaseRenderscript NO-SOURCE Task :unityLibrary:unity-android-resources:compileReleaseRenderscript NO-SOURCE Task :unityLibrary:generateReleaseResources UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseResValues Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues Task :unityLibrary:unity-android-resources:generateReleaseResValues Task :unityLibrary:unity-android-resources:generateReleaseResources Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseResources Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources Task :unityLibrary:packageReleaseResources UP-TO-DATE Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE Task :launcher:extractDeepLinksRelease UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseResources Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.androidlib:extractDeepLinksRelease Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:extractDeepLinksRelease Task :unityLibrary:processReleaseManifest Task :launcher:checkReleaseDuplicateClasses UP-TO-DATE Task :unityLibrary:unity-android-resources:packageReleaseResources Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseLibraryResources Task :unityLibrary:unity-android-resources:extractDeepLinksRelease Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseLibraryResources Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseAidl NO-SOURCE Task :unityLibrary:GooglePlayGamesManifest.androidlib:processReleaseManifest Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE Task :unityLibrary:unity-android-resources:compileReleaseAidl NO-SOURCE Task :unityLibrary:unity-android-resources:compileReleaseLibraryResources Task :unityLibrary:compileReleaseAidl NO-SOURCE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:parseReleaseLocalResources Task :unityLibrary:GooglePlayGamesManifest.androidlib:parseReleaseLocalResources Task :unityLibrary:unity-android-resources:processReleaseManifest Task :unityLibrary:unity-android-resources:parseReleaseLocalResources Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE Task :unityLibrary:javaPreCompileRelease UP-TO-DATE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig Task :unityLibrary:mergeReleaseShaders UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseBuildConfig Task :unityLibrary:compileReleaseShaders NO-SOURCE Task :unityLibrary:generateReleaseAssets UP-TO-DATE Task :unityLibrary:unity-android-resources:generateReleaseBuildConfig Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders NO-SOURCE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseAssets UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseShaders Task :unityLibrary:unity-android-resources:mergeReleaseShaders Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseShaders NO-SOURCE Task :unityLibrary:GooglePlayGamesManifest.androidlib:javaPreCompileRelease Task :unityLibrary:unity-android-resources:compileReleaseShaders NO-SOURCE Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseAssets UP-TO-DATE Task :unityLibrary:unity-android-resources:generateReleaseAssets UP-TO-DATE Task :launcher:mergeReleaseResources UP-TO-DATE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseAssets Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseAssets Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseRFile Task :unityLibrary:unity-android-resources:packageReleaseAssets Task :unityLibrary:unity-android-resources:generateReleaseRFile Task :unityLibrary:unity-android-resources:javaPreCompileRelease Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac Task :unityLibrary:unity-android-resources:compileReleaseJavaWithJavac Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseJavaWithJavac Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibRuntimeToJarRelease Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibCompileToJarRelease Task :unityLibrary:unity-android-resources:bundleLibCompileToJarRelease Task :unityLibrary:GooglePlayGamesManifest.androidlib:bundleLibCompileToJarRelease Task :unityLibrary:unity-android-resources:processReleaseJavaRes NO-SOURCE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE Task :unityLibrary:GooglePlayGamesManifest.androidlib:processReleaseJavaRes NO-SOURCE Task :unityLibrary:unity-android-resources:bundleLibResRelease NO-SOURCE Task :unityLibrary:GooglePlayGamesManifest.androidlib:bundleLibResRelease NO-SOURCE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibResRelease NO-SOURCE Task :unityLibrary:GooglePlayGamesManifest.androidlib:bundleLibRuntimeToJarRelease Task :unityLibrary:unity-android-resources:bundleLibRuntimeToJarRelease Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJniLibFolders Task :unityLibrary:unity-android-resources:mergeReleaseJniLibFolders Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseJniLibFolders Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseNativeLibs Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:stripReleaseDebugSymbols NO-SOURCE Task :unityLibrary:unity-android-resources:mergeReleaseNativeLibs Task :unityLibrary:unity-android-resources:stripReleaseDebugSymbols NO-SOURCE Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:copyReleaseJniLibsProjectOnly Task :unityLibrary:unity-android-resources:copyReleaseJniLibsProjectOnly Task :launcher:processReleaseManifest Task :launcher:compileReleaseAidl NO-SOURCE Task :launcher:generateReleaseBuildConfig UP-TO-DATE Task :launcher:javaPreCompileRelease UP-TO-DATE Task :launcher:mergeReleaseShaders UP-TO-DATE Task :launcher:compileReleaseShaders NO-SOURCE Task :launcher:generateReleaseAssets UP-TO-DATE Task :launcher:processReleaseJavaRes NO-SOURCE Task :launcher:mergeReleaseJniLibFolders UP-TO-DATE Task :launcher:collectReleaseDependencies UP-TO-DATE Task :launcher:configureReleaseDependencies UP-TO-DATE Task :launcher:parseReleaseIntegrityConfig UP-TO-DATE Task :launcher:validateSigningRelease UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseNativeLibs Task :unityLibrary:GooglePlayGamesManifest.androidlib:stripReleaseDebugSymbols NO-SOURCE Task :unityLibrary:GooglePlayGamesManifest.androidlib:copyReleaseJniLibsProjectOnly Task :unityLibrary:packageReleaseAssets Task :unityLibrary:generateReleaseRFile UP-TO-DATE Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE Task :unityLibrary:bundleLibCompileToJarRelease UP-TO-DATE Task :unityLibrary:bundleLibRuntimeToJarRelease UP-TO-DATE Task :unityLibrary:processReleaseJavaRes NO-SOURCE Task :unityLibrary:bundleLibResRelease NO-SOURCE aapt2.exe W 06-16 15:00:45 21164 16444 LoadedArsc.cpp:657] Unknown chunk type '200'.

Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE Task :unityLibrary:stripReleaseDebugSymbols UP-TO-DATE Task :unityLibrary:copyReleaseJniLibsProjectOnly UP-TO-DATE Task :launcher:mergeReleaseAssets aapt2.exe W 06-16 15:00:46 21164 16444 LoadedArsc.cpp:657] Unknown chunk type '200'.

Task :launcher:processReleaseResources Task :launcher:compileReleaseJavaWithJavac UP-TO-DATE

Task :launcher:dexBuilderRelease FAILED

Task :launcher:bundleReleaseResources

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 88 actionable tasks: 58 executed, 30 up-to-date

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

i tried android.enableD8=true android.enableR8=false in gradleTemplate.properties

and already my Mnimum API Level is 24.

T-T.. Help me.. this is my final step..

if you needs more infos, i will provide more information.

Expected Behavior

No response

How to Reproduce

Um.. I'm not sure what to list because I've changed so many times while making the game. What might be relevant is that I installed the Google Admob plugin first before AppLovin.

Additional Info

No response

kfs121 commented 1 year ago

++ i don't know why build complete. I kept failing the build a few days ago, but when I woke up after sleeping and tried to build again, I thought it wouldn't work, but it worked. I do not know why.

baseProjectTemplate.gradle: // 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:4.1.0'
        **BUILD_SCRIPT_DEPS**
    }
}

repositories {**ARTIFACTORYREPOSITORY**
    google()
    jcenter()
    flatDir {
        dirs "${project(':unityLibrary').projectDir}/libs"
    }
}

}

task clean(type: Delete) { delete rootProject.buildDir }

gradleTemplate.properties: org.gradle.jvmargs=-XmxJVM_HEAP_SIZEM org.gradle.parallel=true android.enableR8=MINIFY_WITH_R_EIGHT unityStreamingAssets=.unity3dSTREAMING_ASSETS

Android Resolver Properties Start

android.useAndroidX=true android.enableJetifier=true

Android Resolver Properties End

ADDITIONAL_PROPERTIES

android.enableD8=true

android.enableR8=false

gradle version set: gradle-6.7.1

and i checked use R8 option..

AsifNaeem1 commented 1 year ago

Facing that issue. Need help

shakeelunity commented 1 year ago

you should try build for android 32 or 30 then go higher 33 or 34 ,then build will succeed

github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 30 days with no activity.