美文网首页
android gradle 常见错误

android gradle 常见错误

作者: 读书人heart | 来源:发表于2019-06-10 23:03 被阅读0次

    1、当前gradle版本最低必须是5.1.1等其他版本(英文忘了)
    解决方案:降低项目的build.gradle文件里面的classpath的版本

    ERROR: Unsupported method: AndroidProject.getVariantNames().
    The version of Gradle you connect to does not support that method.
    To resolve the problem you can change/upgrade the target version of Gradle you connect to.
    Alternatively, you can ignore this exception and read other information from the model.

    解决方式:
    1、检查版本好是否对应
    https://developer.android.google.cn/studio/releases/gradle-plugin#updating-gradle

    2、如果不一样,就该一样试试
    3、如果版本没问题,先改成最新版本,在改回原来版本

    Tinker does not support instant run mode, please trigger build by assembleDebug or disable instant run in 'File->Settings...'.
    关掉快速启动

    相关文章

      网友评论

          本文标题:android gradle 常见错误

          本文链接:https://www.haomeiwen.com/subject/mcjxfctx.html