FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processMatriksiqPilotDebugResources'.
> Android resource linking failed
Output: C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4136: error: resource anim/abc_popup_enter (aka com.matriksdata.mobileiq:anim/abc_popup_enter) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4137: error: resource anim/abc_popup_exit (aka com.matriksdata.mobileiq:anim/abc_popup_exit) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4140: error: resource anim/abc_grow_fade_in_from_bottom (aka com.matriksdata.mobileiq:anim/abc_grow_fade_in_from_bottom) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4141: error: resource anim/abc_shrink_fade_out_from_bottom (aka com.matriksdata.mobileiq:anim/abc_shrink_fade_out_from_bottom) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4144: error: resource anim/abc_tooltip_enter (aka com.matriksdata.mobileiq:anim/abc_tooltip_enter) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4145: error: resource anim/abc_tooltip_exit (aka com.matriksdata.mobileiq:anim/abc_tooltip_exit) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4308: error: resource color/abc_btn_colored_borderless_text_material (aka com.matriksdata.mobileiq:color/abc_btn_colored_borderless_text_material) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4311: error: resource color/abc_btn_colored_text_material (aka com.matriksdata.mobileiq:color/abc_btn_colored_text_material) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4365: error: resource drawable/abc_list_selector_holo_dark (aka com.matriksdata.mobileiq:drawable/abc_list_selector_holo_dark) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4417: error: resource drawable/abc_list_selector_holo_dark (aka com.matriksdata.mobileiq:drawable/abc_list_selector_holo_dark) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4449: error: resource color/abc_background_cache_hint_selector_material_dark (aka com.matriksdata.mobileiq:color/abc_background_cache_hint_selector_material_dark) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4452: error: resource color/abc_primary_text_material_dark (aka com.matriksdata.mobileiq:color/abc_primary_text_material_dark) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4453: error: resource color/abc_primary_text_material_light (aka com.matriksdata.mobileiq:color/abc_primary_text_material_light) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4454: error: resource color/abc_primary_text_disable_only_material_dark (aka com.matriksdata.mobileiq:color/abc_primary_text_disable_only_material_dark) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4455: error: resource color/abc_secondary_text_material_dark (aka com.matriksdata.mobileiq:color/abc_secondary_text_material_dark) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4456: error: resource color/abc_secondary_text_material_light (aka com.matriksdata.mobileiq:color/abc_secondary_text_material_light) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4457: error: resource color/abc_secondary_text_material_dark (aka com.matriksdata.mobileiq:color/abc_secondary_text_material_dark) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4458: error: resource color/abc_secondary_text_material_light (aka com.matriksdata.mobileiq:color/abc_secondary_text_material_light) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4459: error: resource color/abc_hint_foreground_material_dark (aka com.matriksdata.mobileiq:color/abc_hint_foreground_material_dark) not found.
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\mergeMatriksiqPilotDebugResources\merged.dir\values\values.xml:4460: error: resource color/abc_hint_foreground_material_light (aka com.matriksdata.mobileiq:color/abc_hint_foreground_material_light) not found.
Command: C:\Users\Matriks\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\71100e6b9d2bf9a21b7e945e51b741cd\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
C:\Users\Matriks\AppData\Local\Android\Sdk\platforms\android-28\android.jar\
--manifest\
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\merged_manifests\matriksiqPilotDebug\processMatriksiqPilotDebugManifest\merged\AndroidManifest.xml\
-o\
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\processed_res\matriksiqPilotDebug\processMatriksiqPilotDebugResources\out\resources-matriksiqPilotDebug.ap_\
-R\
@C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\incremental\processMatriksiqPilotDebugResources\resources-list-for-resources-matriksiqPilotDebug.ap_.txt\
--auto-add-overlay\
--java\
C:\Users\Matriks\Desktop\Projects\arda\app\build\generated\not_namespaced_r_class_sources\matriksiqPilotDebug\processMatriksiqPilotDebugResources\r\
--custom-package\
com.matriksdata.mobileiq\
-0\
apk\
--output-text-symbols\
C:\Users\Matriks\Desktop\Projects\arda\app\build\intermediates\symbols\matriksiqPilot\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
Output: C:\Users\Matriks\.gradle\caches\transforms-1\files-1.1\appcompat-v7-28.0.0.aar\6979c0ccf4af5e928f6107e46b546a2b\res\values\values.xml:1467:5-1470:13: AAPT: error: resource anim/abc_popup_enter (aka com.matriksdata.mobileiq:anim/abc_popup_enter) not found.
...and goes on
找不到來自appcompat-v7的值续誉。
項目中的build.gradle中引入appcompat-v7的代碼
implementation "com.android.support:appcompat-v7:28.0.0"
最佳答案:
刪除緩存文件
C:\Users\用戶名.gradle\caches\transforms-1\files-1.1文件夾內把appcompat-v7相關的都刪掉八毯,然后回到項目再rebuild赚导,一切正常