Could not find method implementation() for arguments [com.android.support:appcompat-v7:25.4.0] on object…android

后端 未结 4 1565
栀梦
栀梦 2021-01-14 04:40

I have to compile a project purchased on line. On importing it into android studio..it complained about the gradle version so i updated the distributionUrl to this dis

4条回答
  •  难免孤独
    2021-01-14 05:23

    In my case i have found out that in app.gradle file

    implementationSdkVersion 27

    was there instead of

    compileSdkVersion 27

    so put it like below

     compileSdkVersion 28
    defaultConfig {
        applicationId "com.kotlinpractise"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    

提交回复
热议问题