FAILURE: Build failed with an exception.
* Where:
Build file 'F:\unity\PythonForUnity\Library\Bee\Android\Prj\Mono2x\Gradle\launcher\build.gradle' line: 1
* What went wrong:
A problem occurred evaluating project ':launcher'.
> Plugin with id 'com.android.application' not found.
* 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.org
BUILD FAILED in 6s
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
ai说明问题是
Plugin with id 'com.android.application' not found.
这是说Gradle找不到com.android.application这个插件,导致构建失败。这个问题一般是Android Gradle插件没有正确配置或者环境不完整引起的。
但是我几个月前还能成功打包出来,经过查阅发现是之前搞大作业,c盘不知道怎么弄的.gradle文件夹和unity的.gradle文件夹冲突了。
解决办法就是把c盘用户文件夹下的.gradle删除(一定要先重启再删除,这样才删的掉)
最后成功解决了问题,打包出来了项目。

1615

被折叠的 条评论
为什么被折叠?



