当前位置: 移动技术网 > IT编程>开发语言>.net > Unity 打包安卓—— Gradle build faliled的可能的问题

Unity 打包安卓—— Gradle build faliled的可能的问题

2020年07月09日  | 移动技术网IT编程  | 我要评论

在打包安卓时,有很多坑,我自己打包遇到的,在此记录,如若你也出现这个问题,说不定可以解决你的问题;

首先按照要求配置好安卓的环境,具体可参考https://blog.csdn.net/mo_qi_qi/article/details/81739935

问题一:路径异常,注意以下标红的错误

What went wrong:
A problem occurred evaluating root project 'gradleOut'.
> Failed to apply plugin [id 'com.android.application']
> Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See  for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.
这种异常是由于在打包的路径上有中文导致的,将路径更改为英文,问题就消失了。

问题二:包名和apk名字异常

找到AndroidManifest的配置文件,找到 <activity >将里面的包名和APK等名字填写完整。

问题三:插件要求的最低api没有配置正确

例如我本次使用的SDK,要求最低api level 17,所以你需要在Player Setting的Other Settings里面选择合适的API即可。

这次记录三个问题,如果帮到了你,请点赞。

本文地址:https://blog.csdn.net/mo_qi_qi/article/details/107182154

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网