I was in the same mess compiling an AOSP application (like a calculator) on my Android studio. There is a lot of help in this, but the bits are scattered, probably due to different versions for the same problem. Below are my changes if someone finds this useful. I am not saying that this is a 100% solution to this problem, but it gives you a direction in an area of concern. upload the build.grade file to the studio and make the following changes. take a look at my comments on the original modified values. NOTE. You can play with different values according to 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 }
source share