美文网首页
Android studio 3.0 填坑

Android studio 3.0 填坑

作者: 五月笑忘 | 来源:发表于2017-11-01 08:27 被阅读284次

    1.依赖项报错:

    QQ截图20171030095418.png

    解决方案:
    将compile project(':wheel')
    改为
    compile project(path: ':easeUI', configuration: 'default')

    2.retrolambda报错:

    Warning:One of the plugins you are using supports Java 8 language features. To try the support built into the Android plugin, remove the following from your build.gradle:
        apply plugin: 'me.tatarka.retrolambda'
    To learn more, go to https://d.android.com/r/tools/java-8-support-message.html
    

    解决办法:

    module层gradle中的apply plugin: 'me.tatarka.retrolambda'
    及project层gradle中的classpath 'me.tatarka:gradle-retrolambda:3.2.5'
    注释掉

    3.apt插件报错

    QQ截图20171030102700.png

    解决方案:
    1.在project的build.gradle中删除
    classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
    2.在module的build.gradle中删除
    apply plugin: 'android-apt'
    3.将module的build.gradle文件中的dependency
    中所有的apt改为annotationProcessor

    相关文章

      网友评论

          本文标题:Android studio 3.0 填坑

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