gpt4 book ai didi

node.js - 配置项目“:CordovaLib”时出现问题

转载 作者:搜寻专家 更新时间:2023-11-01 00:49:58 25 4
gpt4 key购买 nike

当我尝试使用

进行编译时

ionic cordova build --release android

我收到以下错误消息...可能是什么原因...

BUILD FAILED in 0s
cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':CordovaLib'.
> No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s
[ERROR] An error occurred while running subprocess cordova.

cordova build android --release exited with exit code 1.

Re-running this command with the --verbose flag may provide more information.

最佳答案

这取决于您使用的 Android NDK 版本。在 NDK r17 中停止了对 MIPS 和 MIPS64 abis 的支持(参见 Android NDK official documentation )。这是因为基于 MIPS 的 Android 设备已经完全过时了。您需要使用 NDK r16 或更早版本才能正常工作。您可以下载旧的 NDK 版本 here . Alternativeley,按照建议here ,您只需从 NDK r17(或更早版本)复制相应目录到 r18 ndk-bundle/toolchains。 r17 中的目录实际上是空的,并带有一个小通知,表明目录保留在那里是为了兼容。最后一个选项是我所做的并且对我有用。

关于node.js - 配置项目“:CordovaLib”时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53498946/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com