Unsupported method: BaseConfig.getApplicationIdSuffix()

后端 未结 9 2152
挽巷
挽巷 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条回答
  •  天涯浪人
    2020-12-04 05:10

    First, open your application module build.gradle file.

    Check the classpath according to your project dependency. If not change the version of this classpath.

    from:

    classpath 'com.android.tools.build:gradle:1.0.0'
    

    To:

    classpath 'com.android.tools.build:gradle:2.3.2'
    

    or higher version according to your gradle of android studio.

    If its still problem, then change buildToolsVersion:

    From:

    buildToolsVersion '21.0.0'
    

    To:

    buildToolsVersion '25.0.0'
    

    then hit 'Try again' and gradle will automatically sync. This will solve it.

提交回复
热议问题