10

enter image description here

I am getting this error after changing all the Google libraries to 24.0.0 and changing the compileSdkVersion and targetSdkVersion to 24. As you can see in the attached images I installed all Android N packages, but there only stands: "Partially installed". How can I fix this?

enter image description here

enter image description here

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
DropArt
  • 155
  • 1
  • 1
  • 14

4 Answers4

22

There is no targetSdkVersion of 24, nor is there compileSdkVersion of 24, at this time. Those will be valid values (presumably) when the next version of Android ships.

For the N Developer Preview, based on my work over here, use:

  • compileSdkVersion 'android-N'
  • buildToolsVersion '24.0.0 rc1'
  • targetSdkVersion 'N'

You also need Gradle 2.10 or higher (see your gradle/wrapper/gradle-wrapper.properties file or your standalone Gradle installation) and 'com.android.tools.build:gradle:2.1.0-alpha1' (see the top-level build.gradle file).

Community
  • 1
  • 1
CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • Thanks for the quick answer. Could you please also add the link to the blog entry or where this information is provided? – DropArt Mar 11 '16 at 14:09
  • @DropArt: I do not know what "blog entry" you are referring to. If you are referring to official Android documentation, I am not a Google engineer and cannot modify the documentation. I have tried for *years* to get them to fix documentation bugs with limited success. – CommonsWare Mar 11 '16 at 14:10
  • @CommonsWare You misunderstood me. I meant from where you have this information? – DropArt Mar 11 '16 at 14:11
  • @DropArt: A combination of [this bit of documentation](http://developer.android.com/preview/setup-sdk.html), [this sample app](https://github.com/googlesamples/android-MultiWindowPlayground), and my own experimentation. – CommonsWare Mar 11 '16 at 14:23
4

Worked for me: 1. Manual install missing platforms in SDK Manager 2. RESTART Android Studio

Marriage
  • 501
  • 3
  • 15
1

Following worked for me:

  • Updated Android Studio to the latest
  • Restart Android Studio
  • AS provides options to install missing platform plugins
  • Click and update.
Venkat Kotra
  • 10,413
  • 3
  • 49
  • 53
0

open android studio as Run as administrator. It automatically installs missed sdks and all.

AskAni
  • 1
  • 2