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
- 【AndroidStudio】Error:Execution failed for task ':app:preDebugAndroidTestBuild'.AndroidErrorAIAPPUI
- Execution failed for task ‘:demo:stripReleaseDebugSymbols‘.AISymbol
- Camunda中的Execution listeners和Task listeners
- RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED解決辦法ErrorDNNAI
- app:processReleaseResources, Failed to execute aaptAPPAIAPT
- Java併發程式設計實戰系列6之任務執行(Task Execution)Java程式設計
- docker dm_task_run failed 啟動失敗解決辦法DockerAI
- Camunda User Task:Task Listeners
- Task03 && Task 04
- flutter install安裝app時,出現INSTALL_FAILED_NO_MATCHING_ABIS: INSTALL_FAILED_NO_MATCH錯誤的原因FlutterAPPAI
- 聊聊flink的Parallel ExecutionParallel
- Wave Picks in SAP Logistics Execution
- Failed to launch task: 檔案”Setup”不存在 Mac安裝Adobe軟體報錯解決方案AIMac
- tensorflow學習之 Eager execution
- Bypass McAfee Application Control——Code ExecutionAPP
- Powershell tricks::Code Execution & Process Injection
- Oracle's Parallel Execution Features(zt)OracleParallel
- Event loop的macro task和micro taskOOPMac
- 走進Task(1):什麼是Task
- task 7
- 深入理解Javascript之Execution ContextJavaScriptContext
- 什麼是MES(Manufacturing Execution System)
- .NET - Task.Run vs Task.Factory.StartNew
- Task01&Task02學習筆記筆記
- Task1&Task2學習筆記筆記
- Task.Run(async () =>{}) 和 Task.Run(() =>{})區別
- celery筆記三之task和task的呼叫筆記
- Spark Task 的執行流程② - 建立、分發 TaskSpark
- SAP ABAP SQL的execution plan和cacheSQL
- docker desktop : Hardware assisted virtualization and data execution protectionDocker
- task1
- [Javascript] Paralle TaskJavaScript
- task02
- joyful pandas task
- 聰明辦法學python task01&task02Python
- Task.Run(), Task.Factory.StartNew() 和 New Task() 的行為不一致分析
- Task01&Task02:課程簡介、Installation、Getting Start