For some reasons, I ended up with installing the latest android studio on June/2024 (Android Studio Koala | 2024.1.1
).
I encountered the incompatibility error for androidx.core:core:1.15.0-alpha01
(REF: 6629458). Following the IDE suggestion to update compileSdk of at least 35
, I updated the SDK version to 35:
android {
namespace = "com.example.myprj"
compileSdk = 35
defaultConfig {
applicationId = "com.example.myprj"
minSdk = 26
targetSdk = 35
I also set up the Android 15 SDK which I believed corresponding to SDK/API level 35 (REF: Android API Levels). Why the Android Studio Koala IDE kept complaining Failed to find Platform SDK with path: platforms;android-35
?
Wait till aug 2024 as android 35 is in beta. Consider using Android API 34 (Upside Down Cake version 14)
Currently platform stability is being taken care off by google Developers. Android 15 which is a Developer Preview Version, and is unstable right now So as of now keep using android 34 as shown in below code.
android {
namespace = "com.example.prjname"
compileSdk = 34
defaultConfig {
applicationId = "com.example.prjname"
minSdk = 26
targetSdk = 34
Reference links -
https://developer.android.com/about/versions/15/reference/compat-framework-changes
https://developer.android.com/about/versions/15/behavior-changes-all
https://medium.com/androiddevelopers/now-in-android-106-1b72759c5f0c
https://developer.android.com/about/versions/15/feedback#issue_tracker
And track them at
Create New Issue :
Report Android Studio bugs here
Report build tools and Gradle bugs here
Report Android Emulator bugs here
If you are using AGP 7.0.0 or higher, update your app's build.gradle
How to use it in future :
android {
compileSdkPreview "VanillaIceCream"
...
defaultConfig {
targetSdkPreview "VanillaIceCream"
}
}