実現したいこと
ブレイクポイントを貼って、変数の中身をデバッグしてログに出して確認する。
実施したこと
1:Gitに存在しているソースをインポート。
2:以下エラーが出る。
Gradle sync failed: 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. Consult IDE log for more details (Help | Show Log) (28 s 738 ms)
このサイトを参考にして、
●変更前
●変更後
→4.1は上記サイトの数字を拝借しました。
→3.2はダウンロードしてきたバージョンの数字を入れました。
3:以下のエラー発生
Gradle sync failed: Could not find com.android.tools.build:gradle:3.2. Searched in the following locations: https://jcenter.bintray.com/com/android/tools/build/gradle/3.2/gradle-3.2.pom https://jcenter.bintray.com/com/android/tools/build/gradle/3.2/gradle-3.2.jar Required by: project : Consult IDE log for more details (Help | Show Log) (3 s 29 ms)
設定を変更したことが原因なのはわかっているのですが、ここからの解決方法がわからないのでアドバイスのほどよろしくお願いいたします。
追加
*追加1
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.2' } } allprojects { repositories { jcenter() google() } }
を以下のように変更しました。
buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.2' } } allprojects { repositories { google() jcenter() } }
「19:37追加分」
*追加2
dependencies { compile project(':bluetoothspp') }
を以下のように変更。
dependencies { implementation project(':bluetoothspp') }
*追加3
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) // testCompile 'junit:junit:4.12' // compile 'com.android.support:appcompat-v7:23.1.1' }
を以下のように変更。
dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) // testCompile 'junit:junit:4.12' // compile 'com.android.support:appcompat-v7:23.1.1' }
他に、Update Build Tools version and sync projectを実行

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/12/11 08:14
2018/12/11 08:23 編集
2018/12/11 08:35
2018/12/11 08:51
2018/12/11 09:19
2018/12/11 09:55
2018/12/11 10:03 編集
2018/12/11 10:13
2018/12/11 10:44
2018/12/11 10:50 編集
2018/12/12 01:25
2018/12/12 01:51
2018/12/12 02:03
2018/12/12 04:11 編集
2018/12/12 04:37
2018/12/12 07:16
2018/12/12 08:36