数日前までデフォルトで新規プロジェクトをビルド出来ていた
Android Studio 4.2.2の Empty Activity
が突然 gradle エラー。
Android Studio 4.2.2の Empty Activity
が突然 gradle エラー。
The minCompileSdk (31) specified in a dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-30). Dependency: androidx.appcompat:appcompat:1.4.0. AAR metadata file: C:\Users\wanko\.gradle\caches\transforms-2\files-2.1\b70a38d32b407cc6af29424a07f54027\appcompat-1.4.0\META-INF\com\android\build\gradle\aar-metadata.properties.解決方法を調べると...▼
プロジェクト/app/build.gradle
の
compileSdkVersion 30 でビルドできていた
正解はこれ?
https://techgrowup.net/2021/11/07/the-mincompilesdk-31-specified-in-a-dependencys-aar-metadata%e3%82%a8%e3%83%a9%e3%83%bc%e8%a7%a3%e6%b6%88/
の
compileSdkVersion 30 → 31 targetSdkVersion 30 → 31とする情報が見つかる。
compileSdkVersion 30 でビルドできていた
androidx.appcompat:appcompat:1.4.0. → 1.3.1でも改善する。
正解はこれ?
https://techgrowup.net/2021/11/07/the-mincompilesdk-31-specified-in-a-dependencys-aar-metadata%e3%82%a8%e3%83%a9%e3%83%bc%e8%a7%a3%e6%b6%88/
android{ : defaultConfig{ : //▼▼▼ configurations.all{ resolutionStrategy{ force 'androidx.appcompat:appcompat:1.3.1' } } //▲▲▲