android studiao错误:
Android resource linking failed
Output: D:\_ASWorkSpace\phone_new\app\src\main\res\drawable\mm_title_back_btn.xml:4: error: resource drawable/mm_title_back_focused (aka com.smartdoorbell.activity:drawable/mm_title_back_focused) not found.
D:\_ASWorkSpace\phone_new\app\src\main\res\drawable\mm_title_back_btn.xml:5: error: resource drawable/mm_title_back_pressed (aka com.smartdoorbell.activity:drawable/mm_title_back_pressed) not found.
D:\_ASWorkSpace\phone_new\app\src\main\res\drawable\mm_title_back_btn.xml:6: error: resource drawable/mm_title_back_pressed (aka com.smartdoorbell.activity:drawable/mm_title_back_pressed) not found.
D:\_ASWorkSpace\phone_new\app\src\main\res\drawable\mm_title_back_btn.xml:7: error: resource drawable/mm_title_back_normal (aka com.smartdoorbell.activity:drawable/mm_title_back_normal) not found.
error: failed linking file resources.
Command: C:\Users\elaine\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-4818971-windows.jar\01420f994b14e5123620886adc2b29c9\aapt2-3.2.0-4818971-windows\aapt2.exe link -I\
D:\adt-bundle-windows-x86_64_with_Android_5.0\sdk\platforms\android-26\android.jar\
--manifest\
D:\_ASWorkSpace\phone_new\app\build\intermediates\merged_manifests\phoneRollupRelease\processPhoneRollupReleaseManifest\merged\AndroidManifest.xml\
-o\
D:\_ASWorkSpace\phone_new\app\build\intermediates\processed_res\phoneRollupRelease\processPhoneRollupReleaseResources\out\resources-phoneRollupRelease.ap_\
-R\
@D:\_ASWorkSpace\phone_new\app\build\intermediates\incremental\processPhoneRollupReleaseResources\resources-list-for-resources-phoneRollupRelease.ap_.txt\
--auto-add-overlay\
--java\
D:\_ASWorkSpace\phone_new\app\build\generated\not_namespaced_r_class_sources\phoneRollupRelease\processPhoneRollupReleaseResources\r\
--proguard-main-dex\
D:\_ASWorkSpace\phone_new\app\build\intermediates\legacy_multidex_aapt_derived_proguard_rules\phoneRollupRelease\processPhoneRollupReleaseResources\manifest_keep.txt\
--custom-package\
com.smartdoorbell.activity\
-0\
apk\
--output-text-symbols\
D:\_ASWorkSpace\phone_new\app\build\intermediates\symbols\phoneRollup\release\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.0-4818971-windows Daemon #0
gradle.properties
中添加下面内容
#Tue Oct 17 10:08:09 CST 2017
android.enableAapt2=false