You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何通过cordova-plugin-crosswalk-webview 2.4.0仅生成armv7版本APK

How to Build Only armv7 APK with cordova-plugin-crosswalk-webview 2.4.0

Got it, let's sort this out for you! Since you're using version 2.4.0 of the crosswalk webview plugin, there are two straightforward ways to restrict your build to only generate the armv7 (armeabi-v7a) APK:

1. Set a Preference in config.xml (Persistent Solution)

This method saves your setting so you don't have to specify it every time you build:

  • Open your project's config.xml file
  • Inside the <platform name="android"> block, add this preference:
<preference name="xwalkArch" value="armeabi-v7a" />

This tells the crosswalk plugin to only compile for the armeabi-v7a architecture, skipping the other four targets you mentioned.

2. Specify the ABI Directly in Build Command (One-Time/Ad-Hoc)

If you only want to build armv7 occasionally, you can pass the ABI as a command-line argument when running the build:

cordova build android -- --abi armeabi-v7a

This overrides any default settings for that single build.

Verify the Result

After running the build, check the output directory at platforms/android/app/build/outputs/apk/ — you should only see APK files labeled with armeabi-v7a instead of the full set of five architectures.

内容的提问来源于stack exchange,提问作者upupup

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 04:10:01