- install crosswalk-apk-generator with npm
- download current crosswalk release with xwalk_android_dl
- build web app with xwalk_apk_gen and all mandatory parameters in command line
The error below is produced.
xwalk_apkgen --appRoot . --appLocalPath index.html --name Three --package com.balenet.three --androidSDKDir ~/devel/adt-bundle-mac-x86_64-20131030/sdk/ --xwalkAndroidDir crosswalk-4.32.76.5-x86 --version 1.0
*** STARTING BUILD
*** CHECKING ENVIRONMENT...
*** APPLICATION:
{ name: 'Three',
sanitisedName: 'Three',
pkg: 'com.balenet.three',
icon: '',
fullscreen: true,
theme: 'Theme.Holo.Light.NoActionBar.Fullscreen',
permissions:
[ 'ACCESS_FINE_LOCATION',
'ACCESS_NETWORK_STATE',
'CAMERA',
'INTERNET',
'MODIFY_AUDIO_SETTINGS',
'RECORD_AUDIO',
'WAKE_LOCK',
'WRITE_EXTERNAL_STORAGE' ],
appUrl: null,
appRoot: '.',
appLocalPath: 'index.html',
remoteDebugging: false,
jars: [],
javaSrcDirs: [],
extensions: null,
version: 1,
orientation: null }
*** ENVIRONMENT:
{ java: 'java',
javac: 'javac',
ant: 'ant',
jarsigner: 'jarsigner',
sourceJavaVersion: '1.5',
targetJavaVersion: '1.5',
arch: null,
androidSDKDir: '/Users/baleboy/devel/adt-bundle-mac-x86_64-20131030/sdk/',
androidAPILevel: 19,
dx: '/Users/baleboy/devel/adt-bundle-mac-x86_64-20131030/sdk/build-tools/android-4.4/dx',
aapt: '/Users/baleboy/devel/adt-bundle-mac-x86_64-20131030/sdk/build-tools/android-4.4/aapt',
anttasksJar: '/Users/baleboy/devel/adt-bundle-mac-x86_64-20131030/sdk/tools/lib/ant-tasks.jar',
androidJar: '/Users/baleboy/devel/adt-bundle-mac-x86_64-20131030/sdk/platforms/android-19/android.jar',
zipalign: '/Users/baleboy/devel/adt-bundle-mac-x86_64-20131030/sdk/tools/zipalign',
xwalkAndroidDir: 'crosswalk-4.32.76.5-x86',
xwalkRuntimeClientJar: 'crosswalk-4.32.76.5-x86/xwalk_app_template/libs/xwalk_app_runtime_java.jar',
xwalkApkPackageAntFile: 'crosswalk-4.32.76.5-x86/xwalk_app_template/scripts/ant/apk-package.xml',
xwalkAssets: null,
xwalkEmbeddedJar: null,
xwalkCoreResources:
{ resDirs: [ 'crosswalk-4.32.76.5-x86/xwalk_app_template/gen/xwalk_core_java/res_grit/' ],
libs: [ 'crosswalk-4.32.76.5-x86/xwalk_app_template/libs_res/runtime/' ],
pkg: 'org.xwalk.core' },
chromiumContentResources:
{ resDirs:
[ 'crosswalk-4.32.76.5-x86/xwalk_app_template/gen/content_java/res_crunched/',
'crosswalk-4.32.76.5-x86/xwalk_app_template/gen/content_java/res_v14_compatibility/',
'crosswalk-4.32.76.5-x86/xwalk_app_template/gen/content_java/res_grit/' ],
libs: [ 'crosswalk-4.32.76.5-x86/xwalk_app_template/libs_res/content/' ],
pkg: 'org.chromium.content' },
chromiumUiResources:
{ resDirs:
[ 'crosswalk-4.32.76.5-x86/xwalk_app_template/gen/ui_java/res_crunched/',
'crosswalk-4.32.76.5-x86/xwalk_app_template/gen/ui_java/res_v14_compatibility/',
'crosswalk-4.32.76.5-x86/xwalk_app_template/gen/ui_java/res_grit/' ],
libs: [ 'crosswalk-4.32.76.5-x86/xwalk_app_template/libs_res/ui/' ],
pkg: 'org.chromium.ui' },
nativeLibs: null,
keystore: 'crosswalk-4.32.76.5-x86/xwalk_app_template/scripts/ant/xwalk-debug.keystore',
keystoreAlias: 'xwalkdebugkey',
keystorePassword: 'xwalkdebug' }
*** LOCATIONS:
{ destDir: '/Users/baleboy/src/threejs/build',
buildJars: [],
jars: [],
assets: [],
resources: {},
nativeLibs: [],
classesDir: '/Users/baleboy/src/threejs/build/classes',
dexFile: '/Users/baleboy/src/threejs/build/classes.dex',
resPackageApk: '/Users/baleboy/src/threejs/build/Three.ap_',
unsignedApk: '/Users/baleboy/src/threejs/build/Three-unsigned.apk',
signedApk: '/Users/baleboy/src/threejs/build/Three-signed.apk',
finalApk: '/Users/baleboy/src/threejs/build/Three.apk',
resDir: '/Users/baleboy/src/threejs/build/res',
assetsDir: '/Users/baleboy/src/threejs/build/assets',
extensionsJsDir: '/Users/baleboy/src/threejs/build/assets/3351e4f0-1395564934779-1xwalk-extensions',
extensionsConfig: '/Users/baleboy/src/threejs/build/assets/extensions-config.json',
srcDir: '/Users/baleboy/src/threejs/build/src',
javaPackageDir: '/Users/baleboy/src/threejs/build/src/com/balenet/three',
androidManifest: '/Users/baleboy/src/threejs/build/AndroidManifest.xml',
defaultDrawableDir: '/Users/baleboy/src/threejs/build/res/drawable',
drawableDirs:
{ xhdpi: '/Users/baleboy/src/threejs/build/res/drawable-xhdpi',
hdpi: '/Users/baleboy/src/threejs/build/res/drawable-hdpi',
mdpi: '/Users/baleboy/src/threejs/build/res/drawable-mdpi',
ldpi: '/Users/baleboy/src/threejs/build/res/drawable-ldpi' } }
*** BUILDING APPLICATION IN /Users/baleboy/src/threejs/build
shell.js: internal error
Error: ENAMETOOLONG, name too long '/Users/baleboy/src/threejs/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets/build/assets'
at Object.fs.mkdirSync (fs.js:642:18)
at cpdirSyncRecursive (/usr/local/lib/node_modules/crosswalk-apk-generator/node_modules/shelljs/src/cp.js:57:8)
at cpdirSyncRecursive (/usr/local/lib/node_modules/crosswalk-apk-generator/node_modules/shelljs/src/cp.js:72:7)
at cpdirSyncRecursive (/usr/local/lib/node_modules/crosswalk-apk-generator/node_modules/shelljs/src/cp.js:72:7)
at cpdirSyncRecursive (/usr/local/lib/node_modules/crosswalk-apk-generator/node_modules/shelljs/src/cp.js:72:7)
at cpdirSyncRecursive (/usr/local/lib/node_modules/crosswalk-apk-generator/node_modules/shelljs/src/cp.js:72:7)
at cpdirSyncRecursive (/usr/local/lib/node_modules/crosswalk-apk-generator/node_modules/shelljs/src/cp.js:72:7)
at cpdirSyncRecursive (/usr/local/lib/node_modules/crosswalk-apk-generator/node_modules/shelljs/src/cp.js:72:7)
at cpdirSyncRecursive (/usr/local/lib/node_modules/crosswalk-apk-generator/node_modules/shelljs/src/cp.js:72:7)
at cpdirSyncRecursive (/usr/local/lib/node_modules/crosswalk-apk-generator/node_modules/shelljs/src/cp.js:72:7)