AndroidStudioのいうがままにGradle上げたら、エラーになって積んだw

 

 

<build.gradleファイル>
・10行目
classpath 'com.android.tools.build:gradle:4.2.2'
 ↓
classpath 'com.android.tools.build:gradle:7.4.2'

 

というオススメが出たので、これで変更したら…

 

> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:7.4.2.

 

というエラーが出てReSyncできません…魂が抜ける

 

 

ぐぐっても~ぐぐっても~

よくわからない…

ので、けいさんかーどと合わせてみる

 

 

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

 

にしときました。

 

 

<build.gradle(app)ファイル>

※変更箇所が多い…

・4行目、8、9行目

compileSdkVersion 31
minSdkVersion 19
targetSdkVersion 31
 ↓
compileSdkVersion 33
minSdkVersion 24
targetSdkVersion 33
 

・24、26~29行目
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
 ↓
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
 

とりあえず、SDKのバージョン数値が変わってればOKだよね…きっと…魂が抜ける

 

 

とりあえず、リリース作業しよう…