Execution failed for task ‘:demo:stripReleaseDebugSymbols‘.
> Task :demo:stripReleaseDebugSymbols FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':demo:stripReleaseDebugSymbols'.
> 1 exception was raised by workers:
org.gradle.process.internal.ExecException: A problem occurred starting process 'command '/mnt/c/Users/***/AppData/Local/Android/Sdk/ndk/21.0.6113669/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64/bin/aarch64-linux-android-strip''
我是在WSL下執行gradlew命令的,而使用的是Windows下的Android NDK,至少這個版本是不沒有aarch64-linux-android-strip的,所以沒法編譯通過。
可以參考的解決辦法是,在模組的build.gradle檔案中android節點新增上packagingOptions節點,並配置doNotStrip屬性:
android { packagingOptions { doNotStrip '**/*.so' } }
當然這只是臨時解決辦法,只是避免了strip,正式釋出不要這樣做哦。
相關文章
- Execution failed for task ‘:app:processDebugResources‘.AIAPP
- Execution failed for task ':app:compileDebugJavaWithJavac'AIAPPCompileJava
- 【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
- RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED解決辦法ErrorDNNAI
- Java併發程式設計實戰系列6之任務執行(Task Execution)Java程式設計
- docker dm_task_run failed 啟動失敗解決辦法DockerAI
- Oracle /app/grid/grid11g/crs/install/roothas.pl execution failedOracleAPPAI
- Activiti 中的ACT_RU_TASK表中的EXECUTION_ID和PROC_INST_ID區別
- [nodemon] Internal watch failed: watch ENOSPC錯誤解決辦法AI
- Camunda User Task:Task Listeners
- oracle execution planOracle
- Oracle Parallel ExecutionOracleParallel
- Parallel Execution of SQL StatementsParallelSQL
- Explain for the Statistics of Execution PlanAI
- 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
- Powershell tricks::Code Execution & Process Injection
- 聊聊flink的Parallel ExecutionParallel
- TOP 100 long execution query
- Program Execution 程式的執行
- Task.Run(), Task.Factory.StartNew() 和 New Task() 的行為不一致分析
- Spark Task 的執行流程④ - task 結果的處理Spark
- Task 0 Go初探Go
- JS Task2JS
- C++ async taskC++
- tensorflow學習之 Eager execution