• 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

    gradle.properties 中添加下面内容

    #Tue Oct 17 10:08:09 CST 2017
    android.enableAapt2=false
  • 相关阅读:
    梦断代码,读书计划
    《梦断代码》读后感1
    四则运算2详细过程
    四则运算2初步构思
    四则运算
    阅读《梦断代码》计划
    四则运算2设计思路
    随机输出30道四则运算题
    软件工程阅读计划
    面试题04
  • 原文地址:https://www.cnblogs.com/suxiaoqi/p/9797143.html
Copyright © 2020-2023  润新知