I have a problem when building for android, and tried 12 h solving it, so its also my first thred :(:
-
I have set android:exported = “true” in the AndroidManifest.xml and it built fine
-
I have set android:exported = “false”
-
After building, even after resetting exported=” true” or deleting/unchecking Custom Manifest I got these errors:
-If the image doesnt open:
Configure project :launcher
WARNING: The option ‘android.enableR8’ is deprecated and should not be used anymore.
It will be removed in a future version of the Android Gradle plugin, and will no longer allow you to disable R8.
–>and a list of Tasks
-(I have tested it on a new default project and the errors came only after doing these steps)
-Where should I change what?? Should I create a new project and simply copy/paste the Asset folder?
-Already thank you for you support
Full Error:
Configure project :launcher
WARNING: The option ‘android.enableR8’ is deprecated and should not be used anymore.
It will be removed in a future version of the Android Gradle plugin, and will no longer allow you to disable R8.
Task :launcher:preBuild UP-TO-DATE
Task :unityLibrary:GooglePlayGamesManifest.plugin:preBuild UP-TO-DATE
Task :unityLibrary:preBuild UP-TO-DATE
Task :unityLibrary:preReleaseBuild UP-TO-DATE
Task :unityLibrary:GooglePlayGamesManifest.plugin:preReleaseBuild UP-TO-DATE
Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseAidl NO-SOURCE
Task :unityLibrary:GooglePlayGamesManifest.plugin:packageReleaseRenderscript NO-SOURCE
Task :unityLibrary:generateReleaseBuildConfig
Task :launcher:extractProguardFiles
Task :launcher:preReleaseBuild
Task :unityLibrary:compileReleaseAidl NO-SOURCE
Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseRenderscript NO-SOURCE
Task :launcher:compileReleaseRenderscript NO-SOURCE
Task :launcher:compileReleaseAidl NO-SOURCE
Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseResValues
Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseResources
Task :unityLibrary:generateReleaseResValues
Task :unityLibrary:generateReleaseResources
Task :launcher:generateReleaseBuildConfig
Task :unityLibrary:GooglePlayGamesManifest.plugin:packageReleaseResources
Task :launcher:mainApkListPersistenceRelease
Task :launcher:generateReleaseResValues
Task :launcher:generateReleaseResources
Task :launcher:createReleaseCompatibleScreenManifests
Task :unityLibrary:GooglePlayGamesManifest.plugin:parseReleaseLocalResources
Task :launcher:extractDeepLinksRelease
Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseBuildConfig
Task :unityLibrary:GooglePlayGamesManifest.plugin:processReleaseManifest
Task :unityLibrary:packageReleaseResources
Task :unityLibrary:parseReleaseLocalResources
Task :unityLibrary:GooglePlayGamesManifest.plugin:javaPreCompileRelease
Task :unityLibrary:extractDeepLinksRelease
Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseRFile
Task :unityLibrary:processReleaseManifest
Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseJavaWithJavac
Task :unityLibrary:GooglePlayGamesManifest.plugin:bundleLibCompileRelease
Task :unityLibrary:GooglePlayGamesManifest.plugin:extractDeepLinksRelease
Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseLibraryResources
Task :unityLibrary:generateReleaseRFile
Task :unityLibrary:compileReleaseLibraryResources
Task :unityLibrary:javaPreCompileRelease
Task :unityLibrary:GooglePlayGamesManifest.plugin:mergeReleaseGeneratedProguardFiles
Task :unityLibrary:GooglePlayGamesManifest.plugin:exportReleaseConsumerProguardFiles
Task :unityLibrary:GooglePlayGamesManifest.plugin:prepareLintJarForPublish
Task :unityLibrary:GooglePlayGamesManifest.plugin:processReleaseJavaRes NO-SOURCE
Task :unityLibrary:GooglePlayGamesManifest.plugin:bundleLibResRelease
Task :unityLibrary:GooglePlayGamesManifest.plugin:mergeReleaseShaders
Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseShaders
Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseAssets
Task :unityLibrary:GooglePlayGamesManifest.plugin:packageReleaseAssets
Task :unityLibrary:GooglePlayGamesManifest.plugin:mergeReleaseJniLibFolders
Task :unityLibrary:GooglePlayGamesManifest.plugin:bundleLibRuntimeRelease
Task :unityLibrary:GooglePlayGamesManifest.plugin:mergeReleaseNativeLibs
Task :unityLibrary:GooglePlayGamesManifest.plugin:stripReleaseDebugSymbols
Task :unityLibrary:GooglePlayGamesManifest.plugin:copyReleaseJniLibsProjectOnly
Task :unityLibrary:compileReleaseJavaWithJavac FAILED
Task :launcher:mergeReleaseResources
40 actionable tasks: 40 executed
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)