目录

一.目的

1.想知道:如何:Unity2020.3.17f1c1打包APK

二.参考

三.注意

1.设置一下JDK、SDK,不要使用UnityHUB下载的Android模块

1.操作:2:发现不需要设置密钥的

四.操作:1:成功:能够新建工程然后打包APK

1.版本

1.过程

1.解决问题:失败:新建密钥+在OtherSettings中配置好PackageName、Minimun API Level、Target API Level等参数

1.解决报错:失败:修改API等级

1.解决报错:成功:不使用UnityHUB下载自带的Android模块

1.打包成功

四.操作:2:成功:能够正常打包APK(因为写博客时候崩溃了,导致没有了,所以重新写一下内容)

1.版本:和操作:1:一致

1.主要的步骤

1.运行结果:成功:能够打包APK


一.目的

1.想知道:如何:Unity2020.3.17f1c1打包APK

二.参考

https://blog.csdn.net/qq_33795300/article/details/112787575https://blog.csdn.net/qq_33795300/article/details/112787575

三.注意

1.设置一下JDK、SDK,不要使用UnityHUB下载的Android模块

1.操作:2:发现不需要设置密钥的

四.操作:1:成功:能够新建工程然后打包APK

1.版本

1.过程

新建项目

切换平台

打包尝试

失败:


FAILURE: Build failed with an exception.* What went wrong:
A problem occurred configuring project ':launcher'.
> Could not resolve all artifacts for configuration ':launcher:classpath'.> Could not download gradle-4.0.1.jar (com.android.tools.build:gradle:4.0.1)> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.0.1/gradle-4.0.1.jar'.> SSL peer shut down incorrectly> Could not download builder-4.0.1.jar (com.android.tools.build:builder:4.0.1)> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/4.0.1/builder-4.0.1.jar'.> SSL peer shut down incorrectly> Could not download sdk-common-27.0.1.jar (com.android.tools:sdk-common:27.0.1)> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/sdk-common/27.0.1/sdk-common-27.0.1.jar'.> SSL peer shut down incorrectly> Could not download bundletool-0.13.2.jar (com.android.tools.build:bundletool:0.13.2)> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.13.2/bundletool-0.13.2.jar'.> SSL peer shut down incorrectly> Could not download protos-27.0.1.jar (com.android.tools.analytics-library:protos:27.0.1)> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/protos/27.0.1/protos-27.0.1.jar'.> SSL peer shut down incorrectly* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 47s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

CommandInvokationFailure: Gradle build failed.
D:\Unity\2020.3.17f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "D:\Unity\2020.3.17f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"stderr[FAILURE: Build failed with an exception.* What went wrong:
A problem occurred configuring project ':launcher'.
> Could not resolve all artifacts for configuration ':launcher:classpath'.> Could not download gradle-4.0.1.jar (com.android.tools.build:gradle:4.0.1)> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.0.1/gradle-4.0.1.jar'.> SSL peer shut down incorrectly> Could not download builder-4.0.1.jar (com.android.tools.build:builder:4.0.1)> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/4.0.1/builder-4.0.1.jar'.> SSL peer shut down incorrectly> Could not download sdk-common-27.0.1.jar (com.android.tools:sdk-common:27.0.1)> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/sdk-common/27.0.1/sdk-common-27.0.1.jar'.> SSL peer shut down incorrectly> Could not download bundletool-0.13.2.jar (com.android.tools.build:bundletool:0.13.2)> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.13.2/bundletool-0.13.2.jar'.> SSL peer shut down incorrectly> Could not download protos-27.0.1.jar (com.android.tools.analytics-library:protos:27.0.1)> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/protos/27.0.1/protos-27.0.1.jar'.> SSL peer shut down incorrectly* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 47s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]
stdout[]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <80aef334e10c4235a9899a05c6b9e517>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

1.解决问题:失败:新建密钥+在OtherSettings中配置好PackageName、Minimun API Level、Target API Level等参数

参数说明:

  • genkey 生成文件
  • alias 别名
  • keyalg 加密算法
  • validity 有效期
  • keystore 文件名


> 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
WARNING: The specified Android SDK Build Tools version (28.0.3) is ignored, as it is below the minimum supported version (29.0.2) for Android Gradle Plugin 4.0.1.
Android SDK Build Tools 29.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '28.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
WARNING: The specified Android SDK Build Tools version (28.0.3) is ignored, as it is below the minimum supported version (29.0.2) for Android Gradle Plugin 4.0.1.
Android SDK Build Tools 29.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '28.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
File C:\Users\Administrator\.android\repositories.cfg could not be loaded.
Checking the license for package Android SDK Build-Tools 29.0.2 in D:\Unity\2020.3.17f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\licenses
Warning: License for package Android SDK Build-Tools 29.0.2 not accepted.UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


FAILURE: Build failed with an exception.* What went wrong:
Could not determine the dependencies of task ':launcher:compileReleaseJavaWithJavac'.
> Failed to install the following Android SDK packages as some licences have not been accepted.build-tools;29.0.2 Android SDK Build-Tools 29.0.2To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.htmlUsing Android SDK: D:\Unity\2020.3.17f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 43s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

CommandInvokationFailure: Gradle build failed.
D:\Unity\2020.3.17f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "D:\Unity\2020.3.17f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"stderr[FAILURE: Build failed with an exception.* What went wrong:
Could not determine the dependencies of task ':launcher:compileReleaseJavaWithJavac'.
> Failed to install the following Android SDK packages as some licences have not been accepted.build-tools;29.0.2 Android SDK Build-Tools 29.0.2To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.htmlUsing Android SDK: D:\Unity\2020.3.17f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 43s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]
stdout[> 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
WARNING: The specified Android SDK Build Tools version (28.0.3) is ignored, as it is below the minimum supported version (29.0.2) for Android Gradle Plugin 4.0.1.
Android SDK Build Tools 29.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '28.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
WARNING: The specified Android SDK Build Tools version (28.0.3) is ignored, as it is below the minimum supported version (29.0.2) for Android Gradle Plugin 4.0.1.
Android SDK Build Tools 29.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '28.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
File C:\Users\Administrator\.android\repositories.cfg could not be loaded.
Checking the license for package Android SDK Build-Tools 29.0.2 in D:\Unity\2020.3.17f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\licenses
Warning: License for package Android SDK Build-Tools 29.0.2 not accepted.
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <cfa2d529f75d4ac49a883a86bf18c2b6>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <80aef334e10c4235a9899a05c6b9e517>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

1.解决报错:失败:修改API等级

这个报错信息好像是最少API等级为29.0.2

> Configure project :launcher>配置项目:launcher
WARNING: The option setting 'android. 警告:选项设置'android。 enableR8=false' is deprecated.enableR8 = false”是弃用。
It will be removed in version 5.0 of the Android Gradle plugin.它将在5.0版的Android Gradle插件中被删除。
You will no longer be able to disable R8您将不再能够禁用R8
WARNING: The specified Android SDK Build Tools version (28.0.3) is ignored, as it is below the minimum supported version (29.0.2) for Android Gradle Plugin 4.0.1.警告:指定的Android SDK Build Tools版本(28.0.3)被忽略,因为它低于Android Gradle Plugin 4.0.1的最低支持版本(29.0.2)。
Android SDK Build Tools 29.0.2 will be used.Android SDK Build Tools 29.0.2将被使用。
To suppress this warning, remove "buildToolsVersion '28.0.3'" from your build. 要抑制此警告,请从构建中删除“buildToolsVersion '28.0.3'”。 gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.现在,每个版本的Android gradle Plugin都有一个默认版本的构建工具。
WARNING: The specified Android SDK Build Tools version (28.0.3) is ignored, as it is below the minimum supported version (29.0.2) for Android Gradle Plugin 4.0.1.警告:指定的Android SDK Build Tools版本(28.0.3)被忽略,因为它低于Android Gradle Plugin 4.0.1的最低支持版本(29.0.2)。
Android SDK Build Tools 29.0.2 will be used.Android SDK Build Tools 29.0.2将被使用。
To suppress this warning, remove "buildToolsVersion '28.0.3'" from your build. 要抑制此警告,请从构建中删除“buildToolsVersion '28.0.3'”。 gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.现在,每个版本的Android gradle Plugin都有一个默认版本的构建工具。
Checking the license for package Android SDK Build-Tools 29.0.2 in D:\Unity\2020.3.17f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\licenses检查包Android SDK Build-Tools 29.0.2在D:\Unity\2020.3.17f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\licenses
Warning: License for package Android SDK Build-Tools 29.0.2 not accepted.Warning: License for package Android SDK Build-Tools 29.0.2不接受。UnityEngine. UnityEngine。 GUIUtility:ProcessEvent (int,intptr,bool&)GUIUtility: ProcessEvent (int, intptr bool)

FAILURE: Build failed with an exception.
失败:生成失败并出现异常。
* What went wrong:
*问题所在:
Could not determine the dependencies of task ':launcher:compileReleaseJavaWithJavac'.
无法确定任务':launcher:compileReleaseJavaWithJavac'的依赖关系。
> Failed to install the following Android SDK packages as some licences have not been accepted.
>安装以下Android SDK包失败,因为某些许可证未被接受。
build-tools;29.0.2 Android SDK Build-Tools 29.0.2
Android SDK build-tools
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
要构建这个项目,接受SDK许可协议,并使用Android Studio SDK管理器安装缺失的组件。
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
或者,要将许可协议从一个工作站转移到另一个工作站,请参阅http://d.android.com/r/studio-ui/export-licenses.html
Using Android SDK: D:\Unity\2020.3.17f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK
使用Android SDK: D: Unity\2020.3.17f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK
* Try:
*试一试:
Run with --stacktrace option to get the stack trace.
使用——stacktrace选项运行以获取堆栈跟踪。
Run with --info or --debug option to get more log output.
使用——info或——debug选项运行以获得更多日志输出。
Run with --scan to get full insights.
用,扫描得到完整的信息。
* Get more help at https://help.gradle.org
*在https://help.gradle.org获得更多帮助
BUILD FAILED in 3s
3秒内构建失败
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
选择JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
UnityEngine.
UnityEngine。
GUIUtility:ProcessEvent (int,intptr,bool&)
GUIUtility: ProcessEvent (int, intptr bool)

CommandInvokationFailure: Gradle build失败。
D:\Unity\2020.3.17f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath " jvmargs = -Xmx4096m assembleRelease”  stderr (  失败:生成失败并出现异常。  *问题所在:
无法确定任务':launcher:compileReleaseJavaWithJavac'的依赖关系。
>安装以下Android SDK包失败,因为某些许可证未被接受。
Android SDK build-tools
要构建这个项目,接受SDK许可协议,并使用Android Studio SDK管理器安装缺失的组件。
或者,要将许可协议从一个工作站转移到另一个工作站,请参阅http://d.android.com/r/studio-ui/export-licenses.html  使用Android SDK: D: Unity\2020.3.17f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK  *试一试:
使用——stacktrace选项运行以获取堆栈跟踪。 使用——info或——debug选项运行以获得更多日志输出。 用,扫描得到完整的信息。  *在https://help.gradle.org获得更多帮助  3秒内构建失败
选择JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]
stdout (  >配置项目:launcher
警告:选项设置'android。 enableR8 = false”是弃用。
它将在5.0版的Android Gradle插件中被删除。
您将不再能够禁用R8
警告:指定的Android SDK Build Tools版本(28.0.3)被忽略,因为它低于Android Gradle Plugin 4.0.1的最低支持版本(29.0.2)。
Android SDK Build Tools 29.0.2将被使用。
要抑制此警告,请从构建中删除“buildToolsVersion '28.0.3'”。 现在,每个版本的Android gradle Plugin都有一个默认版本的构建工具。
警告:指定的Android SDK Build Tools版本(28.0.3)被忽略,因为它低于Android Gradle Plugin 4.0.1的最低支持版本(29.0.2)。
Android SDK Build Tools 29.0.2将被使用。
要抑制此警告,请从构建中删除“buildToolsVersion '28.0.3'”。 现在,每个版本的Android gradle Plugin都有一个默认版本的构建工具。
检查包Android SDK Build-Tools 29.0.2在D:\Unity\2020.3.17f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\licenses
Warning: License for package Android SDK Build-Tools 29.0.2不接受。
]  

1.解决报错:成功:不使用UnityHUB下载自带的Android模块

1.打包成功

四.操作:2:成功:能够正常打包APK(因为写博客时候崩溃了,导致没有了,所以重新写一下内容)

1.版本:和操作:1:一致

1.主要的步骤

修改companyName、productname

设置一下JDK、SDK,不要使用UnityHUB下载的Android模块

1.运行结果:成功:能够打包APK

Unity3D:问题(成功):如何:Unity2020.3.17f1c1打包APK相关推荐

  1. egret 发布android原生项目(一)打包apk

    一.发布Android工程 1.在Egret Launcher创建一个Demo项目(引擎版本:5.2.6),并点击发布 2.发布设置 3.发布完成后,会在Demo同级目录下生成Demo_android ...

  2. python手册中文版apk-python怎么打包apk

    Kivy 是一个开源的 Python 框架,用于快速开发应用,实现各种当前流行的用户界面,比如多点触摸等等.且Kivy可以运行于Windows, Linux,MacOS, Android, iOS 等 ...

  3. android打包apk时混淆遇到的问题

    android打包apk的时候一般会选择混淆,而在eclipse中常使用的是proguard来混淆.有很多时候引用了第三方包的时候会导致打包不成功,或者打包成功不能运行的情况. 首先看看正常的prog ...

  4. 【Egret】Wing3发布移动APP功能,打包APK流程以及会遇到的问题

    流程:1.安装好wing 3,然后 插件--Egret项目工具--发布移动APP--Build android native project 2.配置发布环境: Android 1.egret eng ...

  5. ReactNative简介、开发环境、调试、常用组件、useState状态、FlatList组件、SectionList组件、Platform 模块、定义样式、图片组件、触摸事件、打包apk发布版

    ReactNative简介: ReactNative是基于React语法来进行开发移动app的框架: ReactNative中提供了移动端专用的一些组件,我们要使用ReactNative固有的组件代替 ...

  6. android studio获取数字签名,Android应用开发Android Studio数字签名打包apk图文步骤教程...

    本文将带你了解Android应用开发Android Studio数字签名打包apk图文步骤教程,希望本文对大家学Android有所帮助. Android Studio数字签名打包release版apk ...

  7. python编程玩具有哪些_python 全栈开发,Day133(玩具与玩具之间的对话,基于jieba gensim pypinyin实现的自然语言处理,打包apk)...

    先下载github代码,下面的操作,都是基于这个版本来的! 注意:由于涉及到版权问题,此附件没有图片和音乐.请参考链接,手动采集一下! 请参考链接: 一.玩具与玩具之间的对话 app消息提醒 之前实现 ...

  8. Unity打包apk报错: Cannot fit requested classes in a single dex file (# methods: 73376 > 65536)的解决办法

    文章目录 一.问题 二.原因 三.测试,生成超过65535个函数 四.解决办法 1.勾选Custom Gradle Template 3.添加multiDexEnabled true 4.添加mult ...

  9. cocos2dx打包APK

    首先,进行环境配置. jdk1.8 : https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html n ...

最新文章

  1. java用for循环修改密码_Java for循环的几种用法分析
  2. python3.5兼容2.7吗_Python版本2.7切3.5和3.5切2.7
  3. Redmine使用手册
  4. 时隔2月,我的第二篇
  5. Zabbix监控Dell服务器主机和网络设备
  6. python内置函数每日一学 -- all()
  7. POJ2187 Beauty Contest
  8. mysql 数据库设计实例_一个简单数据库设计例子
  9. 【Java多线程】synchronized同步语句块
  10. 未来学院计算机,感念过往,不畏将来:计算机学院的2019!
  11. Git官网下载windows版本慢的问题
  12. mysql根据idb还原数据_转一篇文章:MySQL 通过idb文件恢复Innodb 数据
  13. 九鼎实际控制人投资观!
  14. VPS,虚拟主机,云主机,独立服务器区别
  15. ios 做不倒翁动画效果
  16. Android实现涂鸦功能
  17. Oracle设计题资料分析题
  18. java游戏 天剑传承,《天剑传承》之无双迷宫攻略
  19. iOS 审核总被拒?如何提升 iOS 审核通过率!
  20. 网秦手机杀毒软件 v2.1 symbian s60 _symbian 7.0+ 免费

热门文章

  1. 录制和剪辑一体的微课制作软件——CourseMaker
  2. css强制换行、禁止换行、超出两行或三行显示省略号...
  3. VO、BO、PO、DO、DTO的区别
  4. win10下使用AIDA64建立副屏监控
  5. php mysql倒计时_php实现倒计时效果,_PHP教程
  6. 【数据分享】全国3级流域及各级河流数据无套路免费获取
  7. (转)json数据解析异常而导致网络请求失败的解决办法(其一)
  8. CISSP考试指南笔记:3.8 开放系统与封闭系统
  9. 5g/4g边缘计算网关
  10. 开发环境解决跨域问题