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>
相關文章
- ERROR:Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODINGErrorAIEncoding
- [渲染層網路層錯誤] Failed to load local font resource ?AI
- Compiler Drivers+Static LinkingCompile
- 部署在IIS中服務出現異常 Failed to load resource: the server responded with a status of 503 (Service Unavailable)AIServer
- android APK INSTALL_FAILED_INSUFFICIENT_STORAGE 問題AndroidAPKAI
- Android adb除錯出現:opendir failed, Permission deniedAndroid除錯AI
- 解決 Android studio Connect to 127.0.0.1:[/127.0.0.1] failed: Connection refusedAndroid127.0.0.1AI
- Android執行出現android Installation failed due to invalid URI! 錯誤處理AndroidAI
- Laravel Resource Routes和API Resource Routes講解LaravelAPI
- Android Studio報錯:ERROR: Failed to resolve: com.android.support:appcompat-v7:28.0.+AndroidErrorAIAPP
- 【譯】Resource Hints
- Android Studio Run專案出現Failure [INSTALL_FAILED_TEST_ONLY]AndroidAI
- android studio安裝完後,開啟提示failed to load jvm dllAndroidAIJVM
- DRM - Dynamic Resource MasteringAST
- Metasploit resource命令技巧
- Spring系列.Resource介面Spring
- Android Bugs——Error:java.lang.RuntimeException: Some file crunching failed, see logs for detailsAndroidErrorJavaExceptionAI
- Qt for android編譯大坑之adb: failed to stat build-test-andoid5_12_8/android-build//build/QTAndroid編譯AIUI
- vue_resource和axiosVueiOS
- Resource is out of sync with the file system
- Error-Expected resource of typeError
- profile的resource limits和資源計劃resource_manager_plan的limitMIT
- android網路連線除錯 failed to connect to /10.0.2.2 (port 80) after 10000msAndroid除錯AI
- [求助][iOS] 獲取 iOS 應用的 crash 報告,cpu_resource/diskwrites_resource/wakeups_resource 這些型別的如何分析iOS型別
- ApiBoot - ApiBoot Resource Load 使用文件APIboot
- Eclipse:Resource is out of sync with the file systemEclipse
- @Autowired 與@Resource的區別
- 2.7 Overview of Oracle Resource Manager in a CDBViewOracle
- Caused by: Error: ' ' is not a valid resource name characterError
- The bean ‘xxx‘, defined in class path resource , ......Bean
- Matrix原始碼分析————Resource Canary原始碼
- WPF FindResource,Resource[key] SystemColors TryFindResource
- @Autowired和@Resource的區別
- Kubernetes的Resource和Dashboard(十三)
- @Resource和@Autowired的區別
- @Autowired 和 @ Resource的區別
- Installation failed with message INSTALL_FAILED_USER_RESTRICTED錯誤AIREST
- fatal: Authentication failedAI