新建專案報錯 Failed to execute aapt
很久沒做安卓開發了,以前開發安卓的使用大多用的是eclipse,覺得也挺方便的。不過既然谷歌推薦使用android studio,也有他的道理,於是就嘗試一下。沒想到,裝了android studio 後,新建專案,報錯
Error:FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
這個錯挺殘忍的,從昨天下午一直找,百度谷歌無果,根本找不到類似的問題,好鬱悶。又解除安裝從新安裝,從新下載SDK,從新搭建環境,依然無卵用。
俗話說,靠人不如靠自己,今天靜下心來分析分析,aapt執行失敗,aapt是SDK裡面的一個玩意,那麼問題就出在SDK上了,開啟SDK配置管理工具
起初我的Android SDK Build-Tools 是沒有勾選的,我勾上,然後等待下載完成...
完成後,新建一個專案試試,果然問題解決了。
說實話,挺無語的,這個應該是預設會勾上的吧相關推薦
新建專案報錯 Failed to execute aapt
很久沒做安卓開發了,以前開發安卓的使用大多用的是eclipse,覺得也挺方便的。不過既然谷歌推薦使用android studio,也有他的道理,於是就嘗試一下。沒想到,裝了android studio 後,新建專案,報錯 Error:FAILURE: Build faile
【spring cloud】在spring cloud服務中,打包ms-core失敗,報錯Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.4.RELEASE:repackage (default
在spring cloud服務中,有一個ms-code專案,只為所有的微服務提供核心依賴和工具類,沒有業務意義,作為核心依賴使用。所以沒有main方法,沒有啟動類。 在spring cloud整體打包的過程中報錯: [INFO] --- maven-jar-plugin:3.0.2:jar (def
報錯 Failed to execute 'getContext' on 'HTMLCanvasElement': 1 argument required, but only 0 present.
在執行下面程式碼的時候報錯 var can = document.getElementById("can"); var ctx = can.getContext();
開啟安卓專案報錯Failed to load E:\android\android-sdk-windows\build-tools\26.0.2\lib\dx.ja Unable to build:
當我們將安卓環境成功搭建號之後,新建下一個專案準備執行時,突然發現,eclipse報錯: Failed to load (%ANDROID_SDK__HOME%)\build-tools\26.0.0
maven package 打包報錯 Failed to execute goal
總結一下maven 打包,專案工程開發工具idea14,使用 JDK 1.8 版本1.打包前需要先將idea關掉,不然會導致mvn clean的時候,部分檔案刪除不掉,mvn package的時候,也會丟失檔案。2.mvn package打包報錯:[ERROR] Failed
xhprof檢視效能測試圖一直報錯:failed to execute cmd: " dot -Tpng"多種因素解決方案
xhprof檢視效能測試圖一直報錯:failed to execute cmd: ” dot -Tpng”多種因素解決方案 最近在新環境進行php程式碼效能測試,用了xhprof這個工具,搭建好以後,點選[View Full Callgraph]檢視效能分析圖
maven pom 報錯 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile (default-compile) on project xxxxx: Execution defa
專案報錯-failed to find build tools revision 26.0.1
問題: failed to find build tools revision 26.0.1 原因: build tools revision版本不對 解決方法: 第一步: tools ->android ->sdk manager-
Python:pyinstaller 打包執行報錯 failed to execute script ***
車禍現場 打包命令:(在Windows的CMD命令視窗輸入) pyinstaller -F -w C:\Users\JulianYang\Desktop\testJ\milestone\cam
xhprof查看性能測試圖一直報錯:failed to execute cmd: " dot -Tpng"多種因素解決方案
not 方案 報錯 execute 下載 畫圖 graphviz png 性能測試 xhprof查看性能測試圖一直報錯:failed to execute cmd: ” dot -Tpng”多種因素解決方案最近在新環境進行php代碼性能測試,用了xh
Android開發:建立專案後報錯,com.android.ide.common.process.ProcessException: Failed to execute aapt
情景:建立專案後報錯 com.android.ide.common.process.ProcessException:Failed to execute aapt 原因:在build.gradle檔案中, compileSdkVersion 和buildToolsVer
新建專案報錯,Failed to execute appt 錯誤,導致R檔案報錯的解決辦法
錯誤的問題: Error:FAILURE: Build failed with an exception. // What went wrong: Execution failed for task
React Native報錯com.android.ide.common.process.ProcessException: Failed to execute aapt.
報錯環境:執行命令 react-native run-android時,報錯:Error: "C" is not a valid file-based resource name character: File-based resource names must contai
轉:springboot專案啟動報錯Failed to configure a DataSource: 'url' attribute is not specified and no embedde
*************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute
eclipse起專案tomcat報錯 Failed to start component [StandardEngine[Catalina].StandardHost[localhost].
嚴重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start componen
Android專案編譯報錯Failed to resolve: firebase-iid-interop
問題說明 很久以前的一個可以編譯執行的Android,今天重新開啟後發現編譯時報錯 Failed to resolve: firebase-iid-interop Open File Failed to resolve: play-services-basement Open
Eclipse中部署專案時,Tomcat啟動報錯 “Failed to start component [StandardServer[8005]]”的解決方法
【錯誤現象】SEVERE: The required Server component failed to start so Tomcat is unable to start. org.apache.catalina.LifecycleException: F
轉:springboot專案啟動報錯Failed to configure a DataSource: 'url' attribute is not specified and no embedde
*************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url'
springboot專案啟動報錯Failed to configure a DataSource: 'url' attribute is not specified and no embedded..
*************************** APPLICATION FAILED TO START *************************** Description:
Eclipse中部署專案時,Tomcat啟動報錯 “Failed to start component“
你修改了tomcat的server.xml檔案,如下 <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true"> <