Android Studio升级到3.0,抛出Aapt2Exception异常

贵有恒,何必三更起、五更眠、最无益,只怕一日曝、十日寒。这篇文章主要讲述Android Studio升级到3.0,抛出Aapt2Exception异常相关的知识,希望能为你提供帮助。
android  studiao错误:
Android resource linking failed
Output:D:\_ASWorkSpacephone_newappsrcmain esdrawablemm_title_back_btn.xml:4: error: resource drawable/mm_title_back_focused (aka com.smartdoorbell.activity:drawable/mm_title_back_focused) not found.
D:\_ASWorkSpacephone_newappsrcmain esdrawablemm_title_back_btn.xml:5: error: resource drawable/mm_title_back_pressed (aka com.smartdoorbell.activity:drawable/mm_title_back_pressed) not found.
D:\_ASWorkSpacephone_newappsrcmain esdrawablemm_title_back_btn.xml:6: error: resource drawable/mm_title_back_pressed (aka com.smartdoorbell.activity:drawable/mm_title_back_pressed) not found.
D:\_ASWorkSpacephone_newappsrcmain esdrawablemm_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:Userselaine.gradlecaches ransforms-1files-1.1aapt2-3.2.0-4818971-windows.jar1420f994b14e5123620886adc2b29c9aapt2-3.2.0-4818971-windowsaapt2.exe link -I
D:adt-bundle-windows-x86_64_with_Android_5.0sdkplatformsandroid-26android.jar
--manifest
D:\_ASWorkSpacephone_newappuildintermediatesmerged_manifestsphoneRollupReleaseprocessPhoneRollupReleaseManifestmergedAndroidManifest.xml
-o
D:\_ASWorkSpacephone_newappuildintermediatesprocessed_resphoneRollupReleaseprocessPhoneRollupReleaseResourcesout esources-phoneRollupRelease.ap_
-R
@D:\_ASWorkSpacephone_newappuildintermediatesincrementalprocessPhoneRollupReleaseResources esources-list-for-resources-phoneRollupRelease.ap_.txt
--auto-add-overlay
--java
D:\_ASWorkSpacephone_newappuildgenerated ot_namespaced_r_class_sourcesphoneRollupReleaseprocessPhoneRollupReleaseResources
--proguard-main-dex
D:\_ASWorkSpacephone_newappuildintermediateslegacy_multidex_aapt_derived_proguard_rulesphoneRollupReleaseprocessPhoneRollupReleaseResourcesmanifest_keep.txt
--custom-package
com.smartdoorbell.activity
-0
apk
--output-text-symbols
D:\_ASWorkSpacephone_newappuildintermediatessymbolsphoneRollup eleaseR.txt
--no-version-vectors
Daemon:AAPT2 aapt2-3.2.0-4818971-windows Daemon #0
 
【Android Studio升级到3.0,抛出Aapt2Exception异常】gradle.properties  中添加下面内容

#Tue Oct 17 10:08:09 CST 2017 android.enableAapt2=false


    推荐阅读