For some reasons, I ended up with installing the latest android studio (Android Studio Koala | 2024.1.1
), then I updated the SDK version with:
android {
namespace = "com.example.myprj"
compileSdk = 35
defaultConfig {
applicationId = "com.example.myprj"
minSdk = 26
targetSdk = 35
I also followed Set up the Android 15 SDK to install the Android 15 SDK.
I’ve already installed the Android 15’s SDK (which I believe corresponding to Android 15 via Android API Levels); but why the IDE kept complaining Failed to find Platform SDK with path: platforms;android-35
?
2
Answers
I changed to
targetSDK
< 35, e.g. 34:Then choose the stable libs as in here.
Part 1
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.
Reference links –
https://developer.android.com/about/versions/15/migration
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
Report Issue if you face any at
https://developer.android.com/about/versions/15/feedback#issue_tracker
And track them at
https://issuetracker.google.com/savedsearches/6678935
https://issuetracker.google.com/savedsearches/6679723
Create New Issue :
Other bug reporting options :
Report Android Studio bugs here
Report build tools and Gradle bugs here
Report Android Emulator bugs here
Part 2 (use it after getting stable release)
If you are using AGP 7.0.0 or higher, update your app’s build.gradle
How to use it in future :