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