Execution failed for task ‘:app:processDevDebugResources’.【解决办法】

今天爱分享给大家带来app:processDevDebugResources【解决办法】,希望能够帮助到大家。

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDevDebugResources'.
> Android resource linking failed
  Output:  D:\demo_retrofit\RxHttpUtils-2.x\app\build\intermediates\incremental\mergeDevDebugResources\merged.dir\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
  D:\demo_retrofit\RxHttpUtils-2.x\app\build\intermediates\incremental\mergeDevDebugResources\merged.dir\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
  D:\demo_retrofit\RxHttpUtils-2.x\app\build\intermediates\incremental\mergeDevDebugResources\merged.dir\values\values.xml:333: error: resource android:attr/fontVariationSettings not found.
  D:\demo_retrofit\RxHttpUtils-2.x\app\build\intermediates\incremental\mergeDevDebugResources\merged.dir\values\values.xml:333: error: resource android:attr/ttcIndex not found.
  D:\demo_retrofit\RxHttpUtils-2.x\app\build\intermediates\incremental\mergeDevDebugResources\merged.dir\values\values.xml:492: error: resource android:attr/textFontWeight not found.
  error: failed linking references.
  
  Command: C:\Users\Administrator\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-4818971-windows.jar\88b034b6a6182bf392657fa8fc6ca574\aapt2-3.2.0-4818971-windows\aapt2.exe link -I\
          D:\AndroidStudioSdk\platforms\android-27\android.jar\
          --manifest\
          D:\demo_retrofit\RxHttpUtils-2.x\app\build\intermediates\merged_manifests\devDebug\processDevDebugManifest\merged\AndroidManifest.xml\
          -o\
          D:\demo_retrofit\RxHttpUtils-2.x\app\build\intermediates\processed_res\devDebug\processDevDebugResources\out\resources-devDebug.ap_\
          -R\
          @D:\demo_retrofit\RxHttpUtils-2.x\app\build\intermediates\incremental\processDevDebugResources\resources-list-for-resources-devDebug.ap_.txt\
          --auto-add-overlay\
          --java\
          D:\demo_retrofit\RxHttpUtils-2.x\app\build\generated\not_namespaced_r_class_sources\devDebug\processDevDebugResources\r\
          --custom-package\
          com.allen.rxhttputils\
          -0\
          apk\
          --preferred-density\
          xxhdpi\
          --output-text-symbols\
          D:\demo_retrofit\RxHttpUtils-2.x\app\build\intermediates\symbols\dev\debug\R.txt\
          --no-version-vectors
  Daemon:  AAPT2 aapt2-3.2.0-4818971-windows Daemon #0
  Output:  C:\Users\Administrator\.gradle\caches\transforms-1\files-1.1\appcompat-1.1.0.aar\c53d326ba14db3bf6ff590b0e4b8bf67\res\values-v28\values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
      
  D:\demo_retrofit\RxHttpUtils-2.x\app\build\intermediates\incremental\mergeDevDebugResources\merged.dir\values-v28\values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found.
      
  C:\Users\Administrator\.gradle\caches\transforms-1\files-1.1\core-1.1.0.aar\309a72ffdc8f1c7fba3166c77afcfba9\res\values\values.xml:174:5-210:25: AAPT: error: resource android:attr/fontVariationSettings not found.
      
  C:\Users\Administrator\.gradle\caches\transforms-1\files-1.1\core-1.1.0.aar\309a72ffdc8f1c7fba3166c77afcfba9\res\values\values.xml:174:5-210:25: AAPT: error: resource android:attr/ttcIndex not found.
      
  C:\Users\Administrator\.gradle\caches\transforms-1\files-1.1\appcompat-1.1.0.aar\c53d326ba14db3bf6ff590b0e4b8bf67\res\values\values.xml:70:5-69: AAPT: error: resource android:attr/textFontWeight not found.
      
  error: failed linking references.
  Command: C:\Users\Administrator\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-4818971-windows.jar\88b034b6a6182bf392657fa8fc6ca574\aapt2-3.2.0-4818971-windows\aapt2.exe link -I\
          D:\AndroidStudioSdk\platforms\android-27\android.jar\
          --manifest\
          D:\demo_retrofit\RxHttpUtils-2.x\app\build\intermediates\merged_manifests\devDebug\processDevDebugManifest\merged\AndroidManifest.xml\
          -o\
          D:\demo_retrofit\RxHttpUtils-2.x\app\build\intermediates\processed_res\devDebug\processDevDebugResources\out\resources-devDebug.ap_\
          -R\
          @D:\demo_retrofit\RxHttpUtils-2.x\app\build\intermediates\incremental\processDevDebugResources\resources-list-for-resources-devDebug.ap_.txt\
          --auto-add-overlay\
          --java\
          D:\demo_retrofit\RxHttpUtils-2.x\app\build\generated\not_namespaced_r_class_sources\devDebug\processDevDebugResources\r\
          --custom-package\
          com.allen.rxhttputils\
          -0\
          apk\
          --preferred-density\
          xxhdpi\
          --output-text-symbols\
          D:\demo_retrofit\RxHttpUtils-2.x\app\build\intermediates\symbols\dev\debug\R.txt\
          --no-version-vectors
  Daemon:  AAPT2 aapt2-3.2.0-4818971-windows Daemon #0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s

解决办法:

依赖版本和Sdk版本冲突

可以修改依赖或者targetSdkVersion和compileSdkVersion

人已赞赏
安卓

IntelliJ IDEA 如何不通过代码生成Android apk文件【图文教程】

2020-11-10 23:22:03

安卓

CompilationException: Back-end (JVM) Internal error: wrong bytecode【解决方法】

2020-12-5 21:45:42

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
'); })();