Android Studio - Failed to apply plugin [id 'com.android.application']

后端 未结 17 2076
故里飘歌
故里飘歌 2020-12-08 12:38

I am working on an app. In my app there is no error in code but when I try to run my project it gives following errors.

Error:(1, 1) A problem occurred e

17条回答
  •  一个人的身影
    2020-12-08 13:24

    In my case, if your version of build tools in the build.gradle file in the root folder like :

    classpath 'com.android.tools.build:gradle:3.x.x' <--- version of tools

    is not supported by the Gradle installed in your project, you can check the build tools/plugin supported versions here, and make sure that the version installed in your project is supported by that version of Gradle.

    You don't need to upgrade Gradle, you just check if it supports the plugin installed in your project or not.

提交回复
热议问题