Azure / azure-remote-rendering

SDK and samples for Azure Remote Rendering
MIT License
106 stars 38 forks source link

[Question] Build Error: The option setting 'android.enableR8=false' is deprecated #121

Closed ArneBAR1 closed 6 months ago

ArneBAR1 commented 6 months ago

Hey,

When I try to build for Android I receive the following error:

Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

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 Exception while marshalling C:\Program Files\Unity\Hub\Editor\2020.3.48f1\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.48f1\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.48f1\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.48f1\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.48f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2020.3.48f1\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.48f1\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.48f1\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.48f1\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.48f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only

Task :launcher:preBuild UP-TO-DATE Task :unityLibrary:preBuild UP-TO-DATE Task :unityLibrary:preReleaseBuild UP-TO-DATE Task :launcher:preReleaseBuild UP-TO-DATE Task :unityLibrary:compileReleaseAidl NO-SOURCE Task :unityLibrary:packageReleaseRenderscript NO-SOURCE Task :unityLibrary:compileReleaseRenderscript NO-SOURCE Task :launcher:generateReleaseBuildConfig UP-TO-DATE Task :unityLibrary:generateReleaseResValues UP-TO-DATE Task :unityLibrary:generateReleaseResources UP-TO-DATE Task :launcher:compileReleaseAidl NO-SOURCE Task :launcher:compileReleaseRenderscript NO-SOURCE Task :launcher:javaPreCompileRelease UP-TO-DATE Task :launcher:generateReleaseResValues UP-TO-DATE Task :launcher:generateReleaseResources UP-TO-DATE Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE Task :launcher:extractDeepLinksRelease UP-TO-DATE Task :unityLibrary:packageReleaseResources UP-TO-DATE Task :launcher:prepareLintJar UP-TO-DATE Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE Task :launcher:mergeReleaseResources UP-TO-DATE Task :launcher:checkReleaseDuplicateClasses UP-TO-DATE Task :launcher:desugarReleaseFileDependencies UP-TO-DATE Task :launcher:mergeExtDexRelease 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 :unityLibrary:compileReleaseLibraryResources UP-TO-DATE Task :launcher:collectReleaseDependencies UP-TO-DATE Task :launcher:sdkReleaseDependencyData UP-TO-DATE Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE Task :launcher:mergeReleaseJniLibFolders UP-TO-DATE Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE Task :launcher:validateSigningRelease UP-TO-DATE Task :unityLibrary:javaPreCompileRelease UP-TO-DATE Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE Task :unityLibrary:mergeReleaseShaders UP-TO-DATE Task :unityLibrary:compileReleaseShaders NO-SOURCE Task :unityLibrary:generateReleaseAssets UP-TO-DATE Task :unityLibrary:packageReleaseAssets Task :unityLibrary:processReleaseJavaRes NO-SOURCE Task :unityLibrary:bundleLibResRelease NO-SOURCE Task :launcher:mergeReleaseAssets Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE Task :launcher:mergeReleaseJavaResource UP-TO-DATE Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE Task :unityLibrary:stripReleaseDebugSymbols UP-TO-DATE Task :unityLibrary:copyReleaseJniLibsProjectOnly UP-TO-DATE Task :launcher:mergeReleaseNativeLibs UP-TO-DATE Task :launcher:stripReleaseDebugSymbols UP-TO-DATE Task :unityLibrary:processReleaseManifest 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 :launcher:processReleaseManifest Task :launcher:processReleaseResources Task :launcher:compileReleaseJavaWithJavac UP-TO-DATE Task :launcher:compileReleaseSources UP-TO-DATE Task :launcher:lintVitalRelease Task :launcher:dexBuilderRelease UP-TO-DATE Task :launcher:mergeDexRelease UP-TO-DATE Task :launcher:packageRelease FAILED 45 actionable tasks: 7 executed, 38 up-to-date

UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions) BuildGuard:OnBuildClicked (UnityEditor.BuildPlayerOptions) (at Assets/App/Utilities/Editor/BuildGuard.cs:41) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Azure Remote Rendering Template: Showcase Unity Editor Version: 2020.3.48

FlorianBorn71 commented 6 months ago

Hello! This looks like an intermittent compilation issue that we cannot reproduce with a clean version of the project. Maybe the Android build settings are in a broken state, or the Android SDK isn't correctly installed with Unity? It might be worthwhile to restart with a clean version of the project. Cheers, Florian

FlorianBorn71 commented 6 months ago

Hi again, the following forum entry might be related or not:

https://forum.unity.com/threads/do-we-have-a-solution-for-warning-the-option-setting-android-enabler8-false-is-deprecated.1250713/

Maybe the mitigation steps apply to your case as well.

Cheers, Florian

ArneBAR1 commented 6 months ago

Hey Florian, I fixed it by removing my other unity editor versions and removing .android and .gradle file under "C:\User\MYCurrentUser" and then reinstalling the needed unity version.