android studio build 报错,貌似是 gradle 版本问题,网上搜了方法没解决,有大佬帮看看吗?

2021-04-21 17:28:32 +08:00
 dawnzhu

Task :prepareKotlinBuildScriptModel UP-TO-DATE File /root/.android/repositories.cfg could not be loaded. Checking the license for package Android SDK Build-Tools 29.0.3 in /root/Android/Sdk/licenses Warning: License for package Android SDK Build-Tools 29.0.3 not accepted. Checking the license for package Android SDK Platform 29 in /root/Android/Sdk/licenses Warning: License for package Android SDK Platform 29 not accepted.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 16s

4220 次点击
所在节点    Android
3 条回复
Jirajine
2021-04-21 17:31:12 +08:00
你这是没接受许可啊,sdkmanager --licenses 接受一下许可。
q1angch0u
2021-04-21 17:31:57 +08:00
sdk 的 license 没有接受…重装 或者 https://blog.csdn.net/jal517486222/article/details/88717628
dawnzhu
2021-04-21 17:44:02 +08:00
谢谢哈,我再看看

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/772238

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX