Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

updated at

AndroidStudio 3.0.1 のビルドエラーについて



Error:Unsupported method: BaseConfig.getApplicationIdSuffix().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.


File -> Project Structure -> Project

から Gradle のバージョンを変更する。


Gradle と Android Plugin のバージョンの組み合わせはこれを参考にする。
Android Studio 3.0 からは Gradle 3.3 以上を指定する必要がある。



Warning:The specified Android SDK Build Tools version (22.0.1) is ignored,
as it is below the minimum supported version (26.0.2) for Android Gradle Plugin 3.0.1.
Android SDK Build Tools 26.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '22.0.1'" from your build.
gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

現在の buildToolsVersion が (22.0.1) なので最低でも (26.0.2) に変更しろと言わているのでその通りに変更する。

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.2"

    defaultConfig {
        applicationId "screencapture.sample.techbooster.org.screencapture"
        minSdkVersion 22
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])


Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
Help us understand the problem. What are the problem?