android - 尝试使用人行横道构建 apk 时构建失败

标签 android cordova crosswalk-runtime

我正在尝试开始使用人行横道,因此我查看了他们的文档并遵循了所有必要的步骤。但是当我尝试运行命令时:

python make_apk.py --package=org.crosswalkproject.example     --manifest=tasker/manifest.json

我得到一个错误,起初一切都很好,但后来出现构建错误:

Checking manifest file
Checking system requirements...ok

Starting application build (x86)
 * Checking keystore for signing
   No keystore provided for signing. Using xwalk's keystore for debugging.
   Please use a valid keystore when distributing to the app market.
 * Updating project with xwalk_core_library
 * Checking for external extensions
 * Copying native libraries for x86
 * Building Android apk package with Crosswalk embedded (x86)

BUILD FAILED
/home/user1/Documents/android-sdk-linux/tools/ant/build.xml:601: The following error occurred while executing this line:
/home/user1/Documents/android-sdk-linux/tools/ant/build.xml:653: The following error occurred while executing this line:
/home/user1/Documents/android-sdk-linux/tools/ant/build.xml:698: null returned: 127

Total time: 0 seconds
Command "/home/user1/Documents/ant/bin/ant release -f /tmp/Example-zZk3z9/build.xml -Dkey.store=/home/user1/Documents/crosswalk-10.39.235.15/xwalk-debug.keystore -Dkey.alias=xwalkdebugkey -Dkey.store.password=xwalkdebug -Dkey.alias.password=xwalkdebug" exited with non-zero exit code 1

我想这与别名代码有关,但我不确定。

P.S 我的 index.html 和 manifest.json 就像教程中的一样。 我跟着每一步。 这是我正在关注的文档:https://crosswalk-project.org/documentation/getting_started.html 有什么解决办法吗?

最佳答案

我刚遇到同样的问题。

我做了一些调查,看起来这个错误可能有很多不同的原因。

在我的例子中,我必须安装“lib32stdc++6”

apt-get install lib32stdc++6

您可以通过使用找到更多关于您遇到的问题

--verbose

当你运行 make_apk.py 时

对于其他人来说,是构建 xml 中混合了不同的目标版本导致了问题。

关于android - 尝试使用人行横道构建 apk 时构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27979421/

相关文章:

android - 如何使用 btsnoop_hci.log 查看 Android 蓝牙日志?

android - 在后台检查互联网连接

android - 插件错误 : required plugin "Android Support" is disabled

javascript - 如何使用 PhoneGap + Cordova 在 Android 应用程序中启用横向和纵向模式

javascript - 使用 Phonegap 的 Android 设备视频

android - 在 android phonegap 中找到用户的地理位置?

android - 错误:软件包org.xwalk.core不存在Android Studio和Gradle

java - 无法使用phonegap-plugin-push、cordova-plugin-crosswalk-webview 和 cordova-plugin-health 进行cordova android 构建

android - Jenkins 未能通过电动测试案例!

android - 如何在 Crosswalk webview 上更改输入电子邮件的 Android 键盘语言