V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dawnzhu
V2EX  ›  Android

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

  •  
  •   dawnzhu · 2021-04-21 17:28:32 +08:00 · 8334 次点击
    这是一个创建于 1317 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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

    3 条回复    2021-04-21 17:44:02 +08:00
    Jirajine
        1
    Jirajine  
       2021-04-21 17:31:12 +08:00 via Android
    你这是没接受许可啊,sdkmanager --licenses 接受一下许可。
    q1angch0u
        2
    q1angch0u  
       2021-04-21 17:31:57 +08:00 via iPhone
    sdk 的 license 没有接受…重装 或者 https://blog.csdn.net/jal517486222/article/details/88717628
    dawnzhu
        3
    dawnzhu  
    OP
       2021-04-21 17:44:02 +08:00
    谢谢哈,我再看看
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2771 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:39 · PVG 23:39 · LAX 07:39 · JFK 10:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.