Unsupported method: BaseConfig.getApplicationIdSuffix()

后端 未结 9 2125
挽巷
挽巷 2020-12-04 04:58

So I\'m reading Android 6 for Programmers: An App-Driven Approach and the first two app examples I had no issues with the examples, this time the FlagQuiz example w

9条回答
  •  Happy的楠姐
    2020-12-04 05:14

    For Android Studio 3 I need to update two files to fix the error:--

    1. app/build.gradle

    buildscript {
        repositories {
            jcenter()
            mavenCentral()
            maven {
                url 'https://maven.google.com/'
                name 'Google'
            }
        }
    
        dependencies {
            classpath 'com.android.tools.build:gradle:3.0.1'
        }
    }
    

    2. app/gradle/wrapper/gradle-wrapper.properties

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
    

提交回复
热议问题