skip to Main Content

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


  1. Chosen as BEST ANSWER

    I changed to targetSDK < 35, e.g. 34:

    android {
        namespace = "com.example.prjname"
        compileSdk = 34
    
        defaultConfig {
            applicationId = "com.example.prjname"
            minSdk = 26
            targetSdk = 34
    

    Then choose the stable libs as in here.


  2. 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.

    Reference links –


    Report Issue if you face any at

    https://developer.android.com/about/versions/15/feedback#issue_tracker

    And track them at

    Create New Issue :


    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"
        }
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search