Everything was working fine until I imported Esclipse Lollipop examples and the following errors showed up
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.
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
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With