当前位置:网站首页>FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app:stripDe

FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app:stripDe

2022-04-23 21:00:00 Descosmos

Problem description

android studio compile 2012 The following problems occurred during the project in :

FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app:stripDebugDebugSymbols’. > No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

resolvent

On the one hand, it's because jdk The reason why the version is too high , On the other hand ndk The reason why the version is too high .

stay oracle Download a lower version of... From the official website JDK, And in android studio Of ndk Download version in management 20 And before that ndk.
Default jdk and ndk Modify the loading path to the downloaded ndk and jdk route .
 Insert picture description here

android studio The latest version is used by default ndk, Therefore, it is also necessary to ndk The path of Explicitly declare .

Change the default path to the old version downloaded jdk and ndk route .
 Insert picture description here

版权声明
本文为[Descosmos]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/111/202204210545297813.html