Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio not letting me install the Android SDK platform

Everything was working fine until I imported Esclipse Lollipop examples and the following errors showed up

enter image description here

enter image description here

like image 229
AlexMcG Avatar asked Mar 29 '15 19:03

AlexMcG


2 Answers

I had the exact same problem on Mac OS X. Here is how I fixed it.

$cd ~/Library/Android/sdk/tools/

$./android update sdk --no-ui --filter 1

It will start the update of package in non-gui mode and ask for permission etc. and finally install well.

like image 138
Big D Avatar answered Sep 21 '22 11:09

Big D


I was in the same mess while compiling AOSP app (e.g. Calculator) on my Android studio There is lot of help on this, but bit scattered probably because of different versions for same issue. Below is my changes if some one find it useful. I do not claim its a 100% solution for this issue but gives you an direction to the area of concern. load your build.grade file into studio and do following modifications. take a look at my comments against the original changed values. NOTE: You can play with different values based on your requirements.

compileSdkVersion 21   // Remove the "Android-L"
buildToolsVersion "20.0.0"  //Replace "20"

defaultConfig {
        applicationId "com.google.android.apps.calculator"
// Add following two line based on your sdks support by default studio takes API level 1
       minSdkVersion 21
       targetSdkVersion 22
    }

dependencies {
    compile files("arity-2.1.2.jar")
    compile "com.android.support:support-v4:22.2.0"  // Add 22.2.0
}
like image 25
mask Avatar answered Sep 21 '22 11:09

mask