Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to find Platform SDK with path: platforms;android-35

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 did the Android Studio Koala IDE keep complaining Failed to find Platform SDK with path: platforms;android-35?

like image 414
Steven Lee Avatar asked Jan 27 '26 21:01

Steven Lee


1 Answers

Wait till aug 2024 as android 35 is in beta. Consider using Android API 34 (Upside Down Cake version 14)

Part 1

enter image description here

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/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 :

  • https://issuetracker.google.com/issues/new?component=190602&template=1942052

Other bug reporting options :

  1. Report Android Studio bugs here

  2. Report build tools and Gradle bugs here

  3. 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 :

android {
    compileSdkPreview "VanillaIceCream"
    ...
    defaultConfig {
        targetSdkPreview "VanillaIceCream"
    }
}
  • https://developer.android.com/about/versions/15/behavior-changes-15
like image 168
Maveňツ Avatar answered Jan 30 '26 12:01

Maveňツ



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!