构建错误出现在弹出窗口中。
Gradle Error: MinSDK in Manifest
The minSdk version can not be specified in the AndroidManifest.xml file. You have to remove it.
(See the Console for details)
构建错误出现在控制台中
> 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.
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':launcher:lintVitalRelease'.
UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002be] in /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:190
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:95
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)
本质上:
我尝试过重新安装/更新 JAVA。我已经尝试从
我尝试过互联网上所有可能的解决方案中删除minsdk
线路,但仍然出现相同的错误。AndroidManifext.xml
请帮助解决这个问题我想要构建。
AndroidManifest.xml 文件
<?xml version="1.0" encoding="utf-8"?>
<!--
WARNING: Do NOT modify! Generated file.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="__AndroidManifest_Package__"
android:versionCode="__AndroidManifest_VersionCode__"
android:versionName="__AndroidManifest_VersionName__">
<uses-sdk
android:targetSdkVersion="__AndroidManifest_TargetSdkVersion__"/>
</manifest>