Android resource linking failed
Output: C:\Users\aaaks\.gradle\caches\transforms-1\files-1.1\preference-v7-25.3.0.aar\503f5cce9a2dbf4cea415792d4546b49\res\layout\preference_widget_seekbar.xml:27: warn: generated id 'android:id/icon' for external package 'android'.
C:\Users\aaaks\.gradle\caches\transforms-1\files-1.1\preference-v7-25.3.0.aar\503f5cce9a2dbf4cea415792d4546b49\res\layout\preference_widget_seekbar.xml:53: warn: generated id 'android:id/summary' for external package 'android'.
C:\Users\aaaks\.gradle\caches\transforms-1\files-1.1\preference-v7-25.3.0.aar\503f5cce9a2dbf4cea415792d4546b49\res\layout\preference_widget_seekbar.xml:45: warn: generated id 'android:id/title' for external package 'android'.
E:\android app\IndiaKart\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:3247: error: style attribute 'attr/colorError (aka com.td.indiakart:attr/colorError)' not found.
error: failed linking references.
Command: C:\Users\aaaks\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-4818971-windows.jar\9f243ea060e047d10e80e3a1af0fa37f\aapt2-3.2.0-4818971-windows\aapt2.exe link -I\
E:\Android\sdk\platforms\android-28\android.jar\
--manifest\
E:\android app\IndiaKart\app\build\intermediates\split-apk\debug\resources\AndroidManifest.xml\
-o\
E:\android app\IndiaKart\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
@E:\android app\IndiaKart\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
E:\android app\IndiaKart\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--custom-package\
com.td.indiakart\
-0\
apk\
--preferred-density\
420dpi\
--output-text-symbols\
E:\android app\IndiaKart\app\build\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.0-4818971-windows Daemon #0
答案 0 :(得分:0)
在您的res/values/attrs.xml
中添加:
<attr name="colorError" type="color">#ff0000</attr>
或将对appcompat的依赖项添加到您的build.gradle
文件中。