美文网首页
Android Studio 3.0 Canary 6 Kotl

Android Studio 3.0 Canary 6 Kotl

作者: Ahwind | 来源:发表于2017-07-18 08:50 被阅读0次

    新建的Kotlin项目不能运行??

    问题1、The android gradle plugin version 3.0.0-alpha1 is too old

    解决:在项目的 build.gradle中,把

    classpath'com.android.tools.build:gradle:3.0.0-alpha1'

    改为

    classpath'com.android.tools.build:gradle:3.0.0-alpha6'

    问题2、Caused by: android.content.res.Resources$NotFoundException: Resource ID

    解决:直接在gradle.properties 中设置android.enableAapt2=false.

    相关文章

      网友评论

          本文标题:Android Studio 3.0 Canary 6 Kotl

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