Execution failed for task ‘:app:processDebugResources‘.
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
Attribute "android:translationX" has already been defined
Attribute "android:translationY" has already been defined
Attribute "android:translationZ" has already been defined
說是屬性已經定義,重複定義了。
一般就是build.gradle檔案的問題了。畢竟translationX等屬性我並沒有自定義,那就是你匯入的官方的第三方控制元件引起衝突,與自身專案的compileSdkVersion 和buildToolsVersion 不匹配,檢視是不是某個引入的控制元件太高或太低版本,導致不相容
如:
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
而我的
compileSdkVersion 28
buildToolsVersion '28.0.3'
顯然,版本並不匹配,可能是因為implementation 'androidx.constraintlayout:constraintlayout:2.0.4'。需要升級為androidx,能與之匹配的gradle版本。或者降控制元件版本
相關文章
- Execution failed for task ':app:compileDebugJavaWithJavac'AIAPPCompileJava
- Execution failed for task ‘:demo:stripReleaseDebugSymbols‘.AISymbol
- 【AndroidStudio】Error:Execution failed for task ':app:preDebugAndroidTestBuild'.AndroidErrorAIAPPUI
- Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.aErrorAIAPPORMJARAndroidUI
- Camunda中的Execution listeners和Task listeners
- Oracle /app/grid/grid11g/crs/install/roothas.pl execution failedOracleAPPAI
- RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED解決辦法ErrorDNNAI
- Bypass McAfee Application Control——Code ExecutionAPP
- Java併發程式設計實戰系列6之任務執行(Task Execution)Java程式設計
- This task rrequires the application to have elevated permissionsUIAPP
- app:processReleaseResources, Failed to execute aaptAPPAIAPT
- docker dm_task_run failed 啟動失敗解決辦法DockerAI
- ApplySession failed: Patch ID is null.APPSessionAINull
- Activiti 中的ACT_RU_TASK表中的EXECUTION_ID和PROC_INST_ID區別
- 解決:Failed to load ApplicationContextAIAPPContext
- Camunda User Task:Task Listeners
- oracle execution planOracle
- Oracle Parallel ExecutionOracleParallel
- Parallel Execution of SQL StatementsParallelSQL
- Explain for the Statistics of Execution PlanAI
- gpg: signing failed: Inappropriate ioctl for deviceAIAPPdev
- device-mapper create ioctl failed: Device or resource busydevAPPAI
- Event loop的macro task和micro taskOOPMac
- Oracle 11R2 Grid Infrastructure執行root.sh指令碼rootcrs.pl execution failed的處理OracleASTStruct指令碼AI
- task 7
- Understanding Parallel Execution PlanParallel
- explain plan VS execution planAI
- .NET - Task.Run vs Task.Factory.StartNew
- Spark Task 的執行流程② - 建立、分發 TaskSpark
- celery筆記三之task和task的呼叫筆記
- Task.Run(async () =>{}) 和 Task.Run(() =>{})區別
- Failed to launch task: 檔案”Setup”不存在 Mac安裝Adobe軟體報錯解決方案AIMac
- task1
- [Javascript] Paralle TaskJavaScript
- Error:A problem was found with the configuration of task ':app:packageDebug' 問題解決ErrorAPPPackage
- Powershell tricks::Code Execution & Process Injection
- 聊聊flink的Parallel ExecutionParallel
- TOP 100 long execution query