当前位置:   article > 正文

【问题记录】Unity打包Android报错:> Failed to find Build Tools revision 30.0.0

【问题记录】Unity打包Android报错:> Failed to find Build Tools revision 30.0.0

问题:Unity打包Android报错:

 

CommandInvokationFailure: Gradle build failed. 
C:\Program Files\Java\jdk1.8.0_241\bin\java.exe -classpath "D:\Program Files\Unity\Hub\Editor\2018.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.6.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

stderr[

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'gradleOut'.
> Failed to find Build Tools revision 30.0.0

* 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

原因:按照报错"Failed to find Build Tools revision 30.0.0",Build Tools版本是30.0.0,找到Android Studio的SDK设置,版本是"30.0.0-rc1/30.0.0-rc2",名字不对应,unity识别不到

解决:直接在Android Studio中删除Build Tools的"30.0.0-rc1/30.0.0-rc2"版本

试过到处Android工程,用Android Studio打包,不过还有同样报错问题

参考:unity 打包安卓apk时出现错误 Failed to find Build Tools revision 29.0.0

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/运维做开发/article/detail/765773
推荐阅读
相关标签
  

闽ICP备14008679号