Я пытался скомпилировать Android с уровнем API 16. Однако я получаю следующие ошибки. Можно ли сейчас скомпилировать приложение с уровнем API 16, используя Android Studio или Eclipse?
Error:(50, 21) No resource found that matches the given name: attr android:actionModeShareDrawable'
Error:(6, 21) No resource found that matches the given name: attr 'android:paddingEnd'
Error:(11, 21) No resource found that matches the given name: attr 'android:layout_marginEnd'
Error:(10, 21) No resource found that matches the given name: attr 'android:paddingStart'.
Error:(6, 21) No resource found that matches the given name: attr 'android:paddingEnd'
Error:(24, 21) No resource found that matches the given name: attr 'android:layout_marginStart'.
Error goes like that.. Total 118 errors..
Вот что я установил в своей Android Studio:
- Инструменты Android SDK 24.0.2
- Платформа Android SDK — инструменты 21
- Инструменты сборки Android SDK 20
- Android 4.1.2 (API 16).
Я также установил Compile with: API level 16.
Требуется ли что-то еще для его компиляции с уровнем API 16? Как я могу избавиться от этих ошибок? Может ли кто-нибудь помочь мне с этим? Большое спасибо.
РЕДАКТИРОВАТЬ:
Файл build.gradle:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
build.gradle для приложения:
apply plugin: 'com.android.application'
android {
compileSdkVersion 16
buildToolsVersion '20'
defaultConfig {
applicationId "com.mtes.sidek.techer"
minSdkVersion 10
targetSdkVersion 16
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:21.0.3'
}