Я получаю эту ошибку при попытке компиляции в React Native, я исправил версию SDK в 27.0.3, и она не работает. Любые идеи о том, что может происходить?
Ошибка:
C: \ Users \ devan.gradle \ кэшей \ трансформирует-1 \ файлы-1.1 \ AppCompat-v7-
27.1.1.aar \ 750a91892d2e2f437e111b8d6039bfbe \ Рез \ значения-V24 \ значения-v24.xml: 3: 5-157:
AAPT: ошибка при получении родительского элемента: не найдено ни одного ресурса, соответствующего
данное имя
'Андроид: TextAppearance.Material.Widget.Button.Borderless.Colored'
.
C: \ Users \ devan.gradle \ кэшей \ трансформирует-1 \ файлы-1.1 \ AppCompat-v7-27.1.1.aar \ 750a91892d2e2f437e111b8d6039bfbe \ Рез \ значения-V24 \ значения-v24.xml: 4: 5 135:
AAPT: ошибка при получении родительского элемента: не найдено ни одного ресурса, соответствующего
данное имя
'Андроид: TextAppearance.Material.Widget.Button.Colored'
.
C: \ Users \ devan.gradle \ кэшей \ трансформирует-1 \ файлы-1.1 \ AppCompat-v7-27.1.1.aar \ 750a91892d2e2f437e111b8d6039bfbe \ Рез \ значения-V26 \ значения-v26.xml: 13: 5- 16:13:
AAPT: не найден ресурс, который соответствует данному имени: attr
'Андроид: keyboardNavigationCluster'
.
FAILURE: Build failed with an exception.
- Что пошло не так: выполнение задачи не выполнено: 'response-native-ориентация: verifyReleaseResources'.
com.android.ide.common.process.ProcessException: не удалось выполнить
AAPT
Мой build.gradle:
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "com.yojma"
minSdkVersion 21
targetSdkVersion 27
versionCode 3
versionName "3.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
signingConfigs {
release {
if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86"
}
}
buildTypes {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
def versionCodes = ["armeabi-v7a":1, "x86":2]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
}
dependencies {
compile project(':react-native-orientation')
compile project(':react-native-video')
compile project(':react-native-vector-icons')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:27.0.3"
implementation "com.facebook.react:react-native:+" // From node_modules
}
// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}
Я пытался собрать один день. Это стало очень неприятно.