在用人行横道建造apk时建立失败

时间:2015-03-25 14:34:49

标签: android build apk crosswalk-runtime

我正在尝试使用Crosswalk构建一个Web应用程序,并且在从此处按照示例教程时出现错误:https://crosswalk-project.org/documentation/getting_started/run_on_android.html

控制台:

>>python make_apk.py --package=org.crosswalkproject.example \ --manifest=xswag/manifest.json

Checking manifest file
Checking system requirements...ok
options.arch: x86

Starting application build (x86)
 * Checking keystore for signing
   No keystore provided for signing. Using xwalks 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
C:\Users\Jules\AppData\Local\Android\android-sdk\tools\ant\build.xml:601: The following error occurred while executing this line:
C:\Users\Jules\AppData\Local\Android\android-sdk\tools\ant\build.xml:653: The following error occurred while executing this line:
C:\Users\Jules\AppData\Local\Android\android-sdk\tools\ant\build.xml:698: null returned: 1

Total time: 4 seconds
Command "C:\ant-1.9.4\bin\ant.bat release -f C:\Users\Jules\AppData\Local\Temp\Example-2kvo67im\build.xml -Dkey.store=C:\Users\Jules\Desktop\crosswalk-11.40.277
.7\xwalk-debug.keystore -Dkey.alias=xwalkdebugkey -Dkey.store.password=xwalkdebug -Dkey.alias.password=xwalkdebug" exited with non-zero exit code 1

build.xml行683到701:

<echo level="info">----------</echo>
<echo level="info">Handling Resources...</echo>
<aapt executable="${aapt}"
         command="package"
         verbose="${verbose}"
         manifest="${out.manifest.abs.file}"
         originalManifestPackage="${project.app.package}"
         androidjar="${project.target.android.jar}"
         rfolder="${gen.absolute.dir}"
         nonConstantId="${android.library}"
         libraryResFolderPathRefid="project.library.res.folder.path"
         libraryPackagesRefid="project.library.packages"
         libraryRFileRefid="project.library.bin.r.file.path"
         ignoreAssets="${aapt.ignore.assets}"
         binFolder="${out.absolute.dir}"
         proguardFile="${out.absolute.dir}/proguard.txt">
     <res path="${out.res.absolute.dir}" />
     <res path="${resource.absolute.dir}" />
</aapt>

第698行 proguardFile =&#34; $ {out.absolute.dir} /proguard.txt"&gt;

我安装了Python,ant,adb,Android JDK,Java和Oracle JDK,我的Path变量正在运行。

2 个答案:

答案 0 :(得分:0)

我有同样的问题,通过安装lib32z1 lib32z1-dev

修复它

要查看更详细的输出,请尝试使用: python make_apk.py --package = org.crosswalkproject.example \ --manifest = xswag / manifest.json --verbose

答案 1 :(得分:0)

使用apache-ant(1.9.7)构建apk时遇到了类似的错误。 我发现它需要java 8版本才能成功转换它(.class到.dex然后是apk),最初我有java 7。

我们在此过程中使用的所有工具的版本都需要有一些先决条件,即Android-NDK工具,Android-SDK工具,apache-ant和java(jdk / jre)版本的合规性才能成功得到apk。由于我们没有得到任何相关的打印/错误消息指出这些问题的实际问题,我们最终花费了很多时间来调试它。因此,请确保您对所有正在使用的工具的版本都很满意。