Android resource linking failed
編譯報錯:
Android resource linking failed
Output: C:\Users\13579\Desktop\early\MyLoading\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:3082:
error: expected reference but got (raw string) #00000000.
error: failed linking references.
Command: C:\Users\13579\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-4818971-windows.jar\d7e688e38fe8878f08b5bcf541788205\aapt2-3.2.0-4818971-windows\aapt2.exe link -I\
E:\sdk\platforms\android-28\android.jar\
--manifest\
C:\Users\13579\Desktop\early\MyLoading\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
C:\Users\13579\Desktop\early\MyLoading\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
@C:\Users\13579\Desktop\early\MyLoading\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
C:\Users\13579\Desktop\early\MyLoading\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--custom-package\
com.xq.e.myloading\
-0\
apk\
--output-text-symbols\
C:\Users\13579\Desktop\early\MyLoading\app\build\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.0-4818971-windows Daemon #0
在gradle.property中新增:
android.enableAapt2=false
繼續報錯:
The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..
Process 'command 'E:\sdk\build-tools\28.0.2\aapt.exe'' finished with non-zero exit value 1
最後通過逐段註釋發現:
<style name="custom_dialog_style" parent="android:Theme.Dialog">
<item name="android:windowBackground">@android:color/transparent</item>
<!--<item name="android:windowBackground">#00000000</item>-->
</style>
在styles中不可直接使用顏色值,需要引用。
正確為:
<style name="custom_dialog_style" parent="android:Theme.Dialog">
<item name="android:windowBackground">@android:color/transparent</item>
</style>
相關文章
- open failed: EBUSY (Device or resource busy)AIdev
- Start of resource “ora.asm -init” failed -ASMAI
- failed to establish dependency between database GERP and diskgroup resourceAIDatabase
- device-mapper create ioctl failed: Device or resource busydevAPPAI
- CRS-2765: Resource 'ora.crsd' has failed on serverAIServer
- 【RAC】failed to online diskgroup resource ora.GI.dgAI
- CRS-1205:Auto-start failed for the CRS resourceAI
- ERROR:Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODINGErrorAIEncoding
- PRCR-1079 : Failed to start resource ora.scan1.vipAI
- [渲染層網路層錯誤] Failed to load local font resource ?AI
- root script (root.sh or rootupgrade.sh) Failed to start resource ora.onsAI
- Content Linking元件[Asp]元件
- Compiler Drivers+Static LinkingCompile
- iOS Deep Linking 最佳實踐iOS
- ALERT.LOG for ASM Shows "WARNING: failed to online diskgroup resource ora.GI.dgASMAI
- Android 3.0 DELETE_FAILED_INTERNAL_ERRORAndroiddeleteAIError
- android: failed to find provider info for downloadsAndroidAIIDE
- 部署在IIS中服務出現異常 Failed to load resource: the server responded with a status of 503 (Service Unavailable)AIServer
- iOS Deep Linkin 和 Deferred Deep LinkingiOS
- Android Studio 打包APK遇到Error: Expected resource of type id [ResourceType]AndroidAPKError
- Laravel Resource Routes和API Resource Routes講解LaravelAPI
- React Native Linking跨app的通訊方法React NativeAPP
- 【譯】Resource Hints
- RESOURCE_LIMITMIT
- 解決Android中No resource found that matches android:TextAppearance.Material.Widget.Button.Inverse問題AndroidAPP
- Action Script for resource 'ora.xxxx.xxxx2.inst' stdout redirection failed forAI
- android APK INSTALL_FAILED_INSUFFICIENT_STORAGE 問題AndroidAPKAI
- Android adb除錯出現:opendir failed, Permission deniedAndroid除錯AI
- Metasploit resource命令技巧
- Oracle Database Resource ManagerOracleDatabase
- vue-resource 小抄Vue
- Resource temporarily unavailableAI
- Oracle simple resource planOracle
- v$resource_limitMIT
- Oracle Resource Manager概述Oracle
- 11gr2安裝Grid 時 node2 root.sh失敗Start of resource “ora.asm -init” failedASMAI
- Android逆向之旅---解析編譯之後的Resource.arsc檔案格式Android編譯
- Android外掛化(三):載入外掛apk中的Resource資源AndroidAPK