unity3d (Unity错误)选项'android.enableR8'已弃用,不应再使用,在Android Gradle的未来版本中将删除该选项

sqyvllje  于 2022-11-15  发布在  Android
关注(0)|答案(4)|浏览(574)

I can drop everything you need to help me
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 :launcher:preReleaseBuild UP-TO-DATE Task :unityLibrary:preBuild UP-TO-DATE Task :unityLibrary:preReleaseBuild UP-TO-DATE Task :launcher:generateReleaseBuildConfig UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.plugin:preBuild 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:compileReleaseAidl NO-SOURCE Task :launcher:compileReleaseAidl NO-SOURCE Task :launcher:compileReleaseRenderscript NO-SOURCE Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE Task :unityLibrary:generateReleaseResValues UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.plugin:packageReleaseRenderscript NO-SOURCE Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseRenderscript NO-SOURCE Task :unityLibrary:compileReleaseRenderscript NO-SOURCE Task :unityLibrary:generateReleaseResources UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseResValues Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseResources Task :unityLibrary:packageReleaseResources UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.plugin:packageReleaseResources Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.plugin:parseReleaseLocalResources Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseBuildConfig Task :unityLibrary:GooglePlayGamesManifest.plugin:javaPreCompileRelease Task :unityLibrary:GooglePlayGamesManifest.plugin:processReleaseManifest Task :unityLibrary:processReleaseManifest Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseRFile Task :unityLibrary:generateReleaseRFile UP-TO-DATE Task :launcher:mainApkListPersistenceRelease UP-TO-DATE Task :launcher:generateReleaseResValues UP-TO-DATE Task :launcher:generateReleaseResources UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseJavaWithJavac Task :unityLibrary:GooglePlayGamesManifest.plugin:bundleLibCompileRelease Task :unityLibrary:javaPreCompileRelease UP-TO-DATE Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.plugin:extractDeepLinksRelease Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseLibraryResources Task :unityLibrary:bundleLibCompileRelease Task :launcher:mergeReleaseResources UP-TO-DATE Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE Task :launcher:extractDeepLinksRelease UP-TO-DATE Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.plugin:prepareLintJarForPublish UP-TO-DATE Task :unityLibrary:GooglePlayGamesManifest.plugin:bundleLibRuntimeRelease Task :unityLibrary:bundleLibRuntimeRelease
Task :launcher:processReleaseManifest C:\Unity and other\Project\HelixJumpFirstPerson\Temp\gradleOut\launcher\src\main\AndroidManifest.xml:23:5-81 Warning: uses-permission#android.permission.WRITE_EXTERNAL_STORAGE was tagged at AndroidManifest.xml:23 to replace another declaration but no other declaration present

Task :unityLibrary:GooglePlayGamesManifest.plugin:mergeReleaseShaders Task :unityLibrary:mergeReleaseShaders Task :unityLibrary:compileReleaseShaders Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseShaders Task :unityLibrary:generateReleaseAssets Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseAssets Task :unityLibrary:GooglePlayGamesManifest.plugin:packageReleaseAssets Task :unityLibrary:packageReleaseAssets Task :unityLibrary:processReleaseJavaRes NO-SOURCE Task :unityLibrary:GooglePlayGamesManifest.plugin:processReleaseJavaRes NO-SOURCE Task :unityLibrary:GooglePlayGamesManifest.plugin:bundleLibResRelease Task :unityLibrary:bundleLibResRelease Task :unityLibrary:GooglePlayGamesManifest.plugin:mergeReleaseJniLibFolders Task :unityLibrary:GooglePlayGamesManifest.plugin:mergeReleaseNativeLibs Task :unityLibrary:GooglePlayGamesManifest.plugin:stripReleaseDebugSymbols Task :unityLibrary:GooglePlayGamesManifest.plugin:copyReleaseJniLibsProjectOnly Task :unityLibrary:mergeReleaseJniLibFolders Task :unityLibrary:mergeReleaseNativeLibs Task :unityLibrary:stripReleaseDebugSymbols Task :unityLibrary:copyReleaseJniLibsProjectOnly Task :launcher:processReleaseResources Task :launcher:prepareLintJar UP-TO-DATE Task :launcher:javaPreCompileRelease Task :launcher:compileReleaseJavaWithJavac Task :launcher:compileReleaseSources Task :launcher:lintVitalRelease Task :launcher:checkReleaseDuplicateClasses FAILED 55 actionable tasks: 37 executed, 18 up-to-date
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

des4xlb0

des4xlb01#

您正在使用导入的包吗?我错误地导入了ARCore Extensions包,将其放置在我的项目的Packages文件夹中,并得到了此错误(或类似错误)。如果您以相同的方式导入了一个包,这可能是问题所在。(正确的方式是Window>Package Manager>+ (dropdown)>Add package from disk>package.json。)

t98cgbkg

t98cgbkg2#

在Unity v.2021.1.16f1和Firebase 8.8.0上,存在相同问题。
我的解决方案:最低API级别= API 21

ogsagwnx

ogsagwnx3#

你应该试试这个检查项目设置〉Xr-pluginManagement〉ARCore下的复选框Ignore Gradle Version
请参见下面的屏幕截图。
ScreenShot

oyxsuwqo

oyxsuwqo4#

尝试在Project Settings/Player/Publishing Settings/Minify中选中Use R8

相关问题