我在試着用Crosswalk將html5項目構建爲android項目, 參考官方手冊進行配置的.
在構建官方示例時沒有問題, 但是在構建自己的項目時出現如下錯誤:
Starting application build (arm)
* 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 arm
* Building Android apk package with Crosswalk embedded (arm)
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 3 warnings
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 3 warnings
BUILD FAILED
/home/jian/app/android-sdk-linux/tools/ant/build.xml:928: The following error occurred while executing this line:
/home/jian/app/android-sdk-linux/tools/ant/build.xml:946: null returned: 1
Total time: 40 seconds
Command "/home/jian/app/ant/bin/ant release -f /tmp/Threecakes-Qqo589/build.xml -Dkey.store=/home/jian/app/crosswalk-14.43.343.17/xwalk-debug.keystore -Dkey.alias=xwalkdebugkey -Dkey.store.password=xwalkdebug -Dkey.alias.password=xwalkdebug" exited with non-zero exit code 1
這是我的環境配置
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export ANDROID_HOME=/home/jian/app/android-sdk-linux
export ANT_HOME=/home/jian/app/ant
export PATH=/home/jian/app/ant/bin:/usr/lib/jvm/java-8-oracle/bin:$PATH
export PATH=/home/jian/app/android-sdk-linux:$PATH
export PATH=/home/jian/app/android-sdk-linux/tools:$PATH
export PATH=/home/jian/app/android-sdk-linux/platform-tools:$PATH
這是版本信息
java -version
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)
ant -version
Apache Ant(TM) version 1.9.6 compiled on June 29 2015
adb help
Android Debug Bridge version 1.0.32
crosswalk version
14.43.343.17
我的問題是上述的構建錯誤的原因, 以及解決的方法. 謝謝你的幫助.
PHPz2017-04-17 13:44:38
The problem has been solved.
http://stackoverflow.com/questions/22276156/assets-and-node-modules-ph...