Unsupported method: BaseConfig.getApplicationIdSuffix().

IDE > Android Studio

問題発生

 状態:解決済  閲覧数:2,985  投稿日:2018-05-09  更新日:2018-05-09

既存プロジェクト取込


プロジェクト作成する最初の画面で、「Open an existing Android Studio project」を選択したら、エラー発生

エラーメッセージ


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.
サポートされていないメソッド:BaseConfig.getApplicationIdSuffix()。
あなたが接続するGradleのバージョンは、そのメソッドをサポートしていません。
この問題を解決するには、接続するGradleのターゲットバージョンを変更またはアップグレードすることができます。
または、この例外を無視して、モデルから他の情報を読み取ることもできます。

エラー原因


Gradleバージョンが合っていない

エラー対応


File -> Project Structure -> Project
・Gradle バージョンを変更

実際に遭遇した例

 閲覧数:653 投稿日:2018-05-09 更新日:2018-05-09

エラーメッセージ


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 Vergion
・2.4 → 4.4

Android Plugin Vergion
・1.3.0 → 3.1.2

build


buildしたらまたエラー発生
Could not find com.android.tools.build:gradle:3.1.2.
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.pom
https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.jar
Required by:
project :
Add Google Maven repository and sync project
Open File
Enable embedded Maven repository and sync project
・その下に掲載されていたリンクをクリックしたら、エラー表示されないようになった


「Android Studio 3.1.2」でプロジェクト削除するためには、物理的にキーボードの「Delete」キーを押す必要がある

The specified Android SDK Build Tools version (23.0.2) is ignored



週間人気ページランキング / 11-26 → 12-2
順位 ページタイトル抜粋 アクセス数
1 Android FAQ 18
2 「Eclipse」上での「Android」関連バージョン指定 | 環境構築 8
3 public 型 ★★ はそれ独自のファイル内に定義されなければなりません | エラー 7
4 内部エラーの表示中に内部エラーが発生しました | エラー 6
5 ログイン 5
6 Androidエミュレータで、PCキーボード入力を有効にしたい | エミュレータ(環境構築) 4
6 Eclipseで、オーバライドするメソッドを追加する方法 | Eclipse(IDE) 4
6 Failed to execute goal com.jayway.maven.plugins.android.generation2: | Apache Maven(環境構築) 4
7 Android Debug Bridge (adb) カテゴリー 3
7 キーバインドの競合が発生しました。 通常のアクセラレーター操作を妨げる可能性があります。 | エラー(エラー) 3
7 Android Studio で xmlファイル名変更 | Android Studio(IDE) 3
8 プラグイン "org.eclipse.ui.workbench" からのコードの起動で問題が発生しました | エラー(エラー) 2
8 複数画面が存在する時、起動後初期表示される画面はどこで決まるの? | 仕組み 2
8 「Android Studio 3.0.1」でプロジェクトを選択するためには? 最初に「現在開いているプロジェクト」を閉じる必要がある | Android Studio(IDE) 2
8 Android Studio で、ソースコードが改行できない | Android Studio(IDE) 2
8 ○○は解決できないか、フィールドではありません | エラー(エラー) 2
8 横方向レイアウトで「android:layout_weight」を使用する際、「android:layout_width」を"0dp"にしないとどうなるの? | layout_weight(レイアウト) 2
8 adb shell … error: device not found | Android Debug Bridge (adb) 2
9 このメソッドは型 ○○ の結果を戻す必要があります | エラー(エラー) 1
9 いくつかのプロジェクトは、ワークスペース・ディレクトリーにすでに存在するため、インポートできません | エラー 1
2026/12/3 5:05 更新