任务':app:mergeGenericDebugResources'的执行失败

时间:2019-05-29 14:53:44

标签: android react-native

我将我的react本机版本升级到0.59.8,所以现在在android studio中它需要gradle的版本5.1.1。在React Native方面一切正常,但是从android运行时出现此错误是什么意思?我该如何解决该错误?

   org.gradle.api.tasks.TaskExecutionException: Execution failed for task 
 ':app:mergeClientDebugResources'.

 5-1461:13: AAPT: error: :style>
  android\app\build\intermediates\incremental\mergeClientDebugResources\merged.dir\values\values.xml: error: file failed to compile.

Android resource compilation failed

gradle-wrapper.properties:

    distributionBase=GRADLE_USER_HOME
    distributionPath=wrapper/dists
    distributionUrl=https\://services.gradle.org/distributions/gradle- 
    5.1.1-all.zip
   zipStoreBase=GRADLE_USER_HOME
   zipStorePath=wrapper/dists

build.gradle:

 android {
  compileSdkVersion 28
  buildToolsVersion "28.0.3"

  defaultConfig {
    applicationId "try"
    minSdkVersion 21
    targetSdkVersion 28
    versionCode 34
    versionName "2.2.13"
    setProperty("archivesBaseName", "try-$versionName")
    ndk {
        abiFilters "armeabi-v7a", "x86"
    }
    multiDexEnabled true
    missingDimensionStrategy 'react-native-camera', 'general'

}

0 个答案:

没有答案