This version of android studio is incompatible with the gradle version used.Try disabling the instant run

前端 未结 10 1083
长发绾君心
长发绾君心 2020-12-07 20:05

I am able to build the app properly, but when I run it I get this error:

This version of android studio is incompatible with the gradle version used.Try dis         


        
10条回答
  •  攒了一身酷
    2020-12-07 20:25

    The Gradle Plugin used is typically the same as the version of Android studio you are using.

    Check the Android Studio version

    Help → About

    and the version will read Android Studio Version X.Y.Z

    Then, go to

    Project → Gradle Scripts → build.gradle(Project)

    and under dependencies change the classpath to

    classpath 'com.android.tools.build:gradle:X.Y.Z'

    and rebuild/sync the project.

提交回复
热议问题