dawnzhu
V2EX  ›  Android

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

  •  
  •   dawnzhu · Apr 21, 2021 · 12667 views
    This topic created in 1854 days ago, the information mentioned may be changed or developed.

    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 replies    2021-04-21 17:44:02 +08:00
    Jirajine
        1
    Jirajine  
       Apr 21, 2021 via Android
    你这是没接受许可啊,sdkmanager --licenses 接受一下许可。
    ryanbuu
        2
    ryanbuu  
       Apr 21, 2021 via iPhone
    sdk 的 license 没有接受…重装 或者 https://blog.csdn.net/jal517486222/article/details/88717628
    dawnzhu
        3
    dawnzhu  
    OP
       Apr 21, 2021
    谢谢哈,我再看看
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5160 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 08:01 · PVG 16:01 · LAX 01:01 · JFK 04:01
    ♥ Do have faith in what you're doing.