ant - crosswalk project build for android failed -
i'm trying build android app using crosswalk. followed official guideto set up. , succeed in building example project. after when try build own html5 project, builds failed.
error outputs:
starting application build (arm) * checking keystore signing no keystore provided signing. using xwalk's keystore debugging. please use valid keystore when distributing app market. * updating project xwalk_core_library * checking external extensions * copying native libraries arm * building android apk package crosswalk embedded (arm) [javac] warning: [options] source value 1.5 obsolete , removed in future release [javac] warning: [options] target value 1.5 obsolete , removed in future release [javac] warning: [options] suppress warnings obsolete options, use -xlint:-options. [javac] 3 warnings [javac] warning: [options] source value 1.5 obsolete , removed in future release [javac] warning: [options] target value 1.5 obsolete , removed in future release [javac] warning: [options] suppress warnings obsolete options, use -xlint:-options. [javac] 3 warnings build failed /home/jian/app/android-sdk-linux/tools/ant/build.xml:928: following error occurred while executing 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 non-zero exit code 1
this environment setting:
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
this version information:
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 android debug bridge version 1.0.32 crosswalk version 14.43.343.17
and part of ant/build.xml
error occured.
<target name="-package-resources" depends="-crunch"> <!-- package resources if *not* library project --> <do-only-if-not-library elsetext="library project: not package resources..." > <aapt executable="${aapt}" command="package" versioncode="${version.code}" versionname="${version.name}" debug="${build.is.packaging.debug}" manifest="${out.manifest.abs.file}" assets="${asset.absolute.dir}" androidjar="${project.target.android.jar}" apkfolder="${out.absolute.dir}" nocrunch="${build.packaging.nocrunch}" resourcefilename="${resource.package.file.name}" resourcefilter="${aapt.resource.filter}" libraryresfolderpathrefid="project.library.res.folder.path" librarypackagesrefid="project.library.packages" libraryrfilerefid="project.library.bin.r.file.path" previousbuildtype="${build.last.target}" buildtype="${build.target}" ignoreassets="${aapt.ignore.assets}"> <res path="${out.res.absolute.dir}" /> <res path="${resource.absolute.dir}" /> <!-- <nocompress /> forces no compression on files in assets or res/raw --> <!-- <nocompress extension="xml" /> forces no compression on specific file extensions in assets , res/raw --> </aapt> </do-only-if-not-library> </target>
why succeed in building example project failed building own project? , how fix error. thank help!
i had same problem.
i downgrade version of java fix :
java -version java version "1.7.0_51" java(tm) se runtime environment (build 1.7.0_51-b13) java hotspot(tm) 64-bit server vm (build 24.51-b03, mixed mode)
Comments
Post a Comment