skip to Main Content

I’m using the newest version of Android Studio on macOS. My app written in Java currently has targetSdk = 34.

When I change it to targetSdk = 35 and Sync Project with Gradle Files I can successfully build and run my app.

But targetSdk = 35 in build.gradle.kts still gives me this message:

It looks like you just edited the targetSdkVersion from 34 to 35 in
the editor. Be sure to consult the documentation on the behaviors that
change as result of this. The Android SDK Upgrade Assistant can help
with safely migrating.

Is this just a standard message or does it mean, there’s something wrong with my code? If there’re issues with my code, is there a way to make Android Studio show me the relevant code? If this is a standard message, when will it disappear?

BTW: I don’t understand why Google is always referring to Android SDK Upgrade Assistant. This isn’t an assistant or tool. It has no functionality at all. This is just a documentation. Or am I missing something?

2

Answers


  1. This is a standard instructive message from Android Studio once you update the targetSdkVersion. It’s meant to remind that with each new API level, there might be changes to system behaviors, permissions, or deprecated APIs that could possibly affect your app.

    When you alter targetSdkVersion to 35, Android Studio prompts you to review the Behavior Changes introduced in API 35 (Android 14). It’s not necessarily pointing to any issue with your code; rather, it’s a precautionary message encouraging you to verify that your app is compatible with the new behaviors.

    Login or Signup to reply.
  2. This is just a warning, indicating that you should review the changes when upgrading the targetSdkVersion from 34 to 35. These changes are introduced to ensure your app behaves correctly under the new APIs and runtime rules introduced in API Level 35 (Android 14).

    However, if this warning persists or becomes annoying in Android Studio, you can try the following steps:

    Invalidate Caches and Restart Android Studio:

    Go to

    File > Invalidate Caches / Restart > Invalidate and Restart.

    This will clear cached data and refresh your project.
    After performing this step, the warning should disappear, and you can proceed with testing your app thoroughly to ensure compatibility with targetSdkVersion 35.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search