【问题记录】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识别不到

【问题记录】Unity打包Android报错:> Failed to find Build Tools revision 30.0.0_第1张图片

解决:直接在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

你可能感兴趣的:(问题记录)