0
When I create a new project
And I choose the minimum SDK 10
He creates the Android package with the main.java
and activy_main.xml
(and other things)
except that when it compiles the codes of these errors and I do not know why. I tested up to API 16 and ran min SDK without this error. Apis 10, 8, and 7 when creating the project, make this mistake:
SDKS TOOLS AND EXTRAS I OWN (ALL INSTALLED BY SDK MANAGER)
Finishing Installing API 15
Build.Radle ( APP )
apply plugin: 'com.android.application'
android { compileSdkVersion 20 buildToolsVersion "21.1.1"
defaultConfig {
applicationId "com.guga.myapplication"
minSdkVersion 10
targetSdkVersion 20
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies { Compile fileTree(dir: 'libs', include: ['*.jar']) Compile 'com.android.support:appcompat-v7:21.0.2' }
Build.Radle ("Application Name")
// Top-level build file Where you can add Configuration options common to all sub-Projects/modules.
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:Gradle:0.13.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects { repositories { jcenter() } }
Which SDK’s have you installed (using SDK Manager)? Also, which Extras you installed? Include this information in your question.
– Wakim
Wakim I did use the SDK Manager (I have API 10 16 17 18 19 20 all tools and extras) (Tando the ADT-BUNDLE as the android Studio)I could all the Extras installed... (I will add images now)
– Gustavo Henrique
This excess of images does not hinder the interpretation of the problem, no?
– Bruno Augusto
Good evening friend, I believe that it does not hinder the images above are those of error and the last 4 are of the files that I owned on my computer...; (I particularly did not find it difficult to understand)
– Gustavo Henrique
Gustavo, unfortunately I’ve been running out of time to see the problem. Looking at the pictures, you did not put the section of Android 5, downloaded too? Like this yours
build.gradle
? Could include in question (text)?– Wakim
Wakim what would this section of Android 5 ??? Ja put the Build.Radle
– Gustavo Henrique
Gustavo, would be the section with the files of Android 5.0 (21). You expanded all, except this, I could not see if you downloaded the SDK 21 or not.
– Wakim
Wakim didn’t own the SDK 21, but I’m already downloading it...
– Gustavo Henrique