编译错误This version of Android Studio is incompatible with the Gradle Plugin used

    xiaoxiao2021-03-25  79

    1、Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Run (or updating either the IDE or the Gradle plugin to the latest version)

    解决方法: 其实,我们读懂了它的意思,就不会绕弯。瞎猜是哪里的问题。 直接就告诉了我们,你当前 android studio 的版本与Gradle插件不兼容。所以我们第一时间要让两者相互兼容。要么就是你的Gradle插件版本太高,或者Android studio 版本太高。 其实,你会发现当你的 android studio 版本是 2.2.3的时候,你的Gradle插件应该也是2.2.3,这个时候就不会报错。 http://www.th7.cn/d/file/p/2017/01/03/b1b42fb4966eabafddf2b71963f7c511.jpg dependencies { classpath ‘com.android.tools.build:gradle:2.2.3’ } 此处的gradle版本必须和androidstudio版本一致,就不会报错

    转载请注明原文地址: https://ju.6miu.com/read-35499.html

    最新回复(0)