Failed to execute aapt的奇怪解決方法
這幾天換了新電腦,原來的檔案是在老版andorid studio2.2上寫的,於是將檔案移植到andorid studio3.1.2上,但是執行專案出現Failed to execute aapt這個問題,錯誤程式碼如下圖所示:
按照網上的方法在SDKtool裡下載SDKbuild tools,但是始終報錯。如下圖可見已經將build tools安裝完畢:
build.gradle檔案如下圖所示:
無論是compileSdkVersion還是buildToolsVersion均已匹配,但是執行依然報錯。由於之前遇到過AATP2 error所以按照網上的方法在gradle.properties里加入一句android.enableAapt2=false。我想是否與這句禁用有關?於是將false改為true,專案成功編譯,奇怪的是之前遇到的AATP2錯誤也並未發生。其原理還需研究,希望給遇到該問題的人一點幫助。
相關文章
- app:processReleaseResources, Failed to execute aaptAPPAIAPT
- NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load xxxx錯誤解決方法ErrorAIXMLHTTP
- pyenv BUILD FAILED解決方法UIAI
- Unable to execute dex: Multiple dex files define 解決方法
- Redhat 下 ASM oracleasm deletedisk -failed 的解決方法RedhatASMOracledeleteAI
- 奇怪的登入問題及解決
- Conversion to Dalvik format failed: Unable to execute dexORMAI
- 【Android-tips】 Unable to execute dex: Multiple dex files define 解決方法Android
- Oracle 11gR2 RAC ohasd failed to start 解決方法OracleAI
- FreeBSD系統下zfs: failed with error 6錯誤的解決方法AIError
- smplx 的 libGL error: MESA-LOADER: failed to open swrast 的解決方法ErrorAIAST
- Resolving failed: Temporary failure in name resolution 錯誤解決方法AI
- 解決Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile(default-compile)AIGoApacheMavenPluginCompile
- 奇怪報錯資訊“db already exists with different case already have”解決方法
- Apache httpclient的execute方法除錯ApacheHTTPclient除錯
- git push出現unpack failed: error Missing tree錯誤的解決方法GitAIError
- Android - Unparsed aapt error(s)錯誤的處理方法AndroidAPTError
- win10系統開機提示critical service failed錯誤的解決方法Win10AI
- IMP-00017: following statement failed with ORACLE error 957錯誤的解決方法AIOracleError
- 解決ssh的"Write failed: Broken pipe"問題AI
- 關於Failed to resolve的問題解決AI
- 解決了半個月來電腦的奇怪問題
- 奇怪的漢諾塔 - 題解
- 解決:Failed to load ApplicationContextAIAPPContext
- Dex Loader] Unable to execute dex: Multiple dex files define 解決
- ORA-09817: Write to audit file failed 的解決AI
- socket write failed(24) _Netbackup的問題解決AI
- android aapt用法AndroidAPT
- win10玩絕地求生提示failed to install battleye service解決方法Win10AIBAT
- 解決Spring Boot測試方法Failed to load ApplicationContext問題Spring BootAIAPPContext
- 奇怪的bug:解決 vue-cli中 proxyTable 配置無效Vue
- 解決:Failed to download metadata for repo ‘base‘AI
- 解決Xmanager-AIX XDMCP Connection failedAI
- Android Studio 解決編譯報錯 Could not download aapt2-windows.jarAndroid編譯APTWindowsJAR
- android錯誤unable to execute dex java heap space解決方案AndroidJava
- [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.5.0-rc1:compile (default) on project zeus-web: Command 解決ErrorAIGoMavenPluginCompileProjectWeb
- Failed to run the WC DB work queue associated with 錯誤的解決AI
- rake deploy ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to解決方法ASTForwardErrorAI