cordova - Error: java.io.IOException: build on Android device failed at task 'processDebugResources' -
i using ubuntu 12.04.4 lts , android phone is
samsung galaxy s3 neo i93001 android version 4.3 , connected device.
~$ adb devices list of devices attached * daemon not running. starting on port 5037 * * daemon started * 4e1eb1e1 device
when trying build sample app in android device getting error.
execution failed task ':cordovalib:processdebugresources'.
java.io.ioexception: cannot run program "/android-sdk-linux/build-tools/23.0.2/aapt": error=2, no such file or directory
try: run --stacktrace option stack trace. run --info or --debug option more log output.
build failed
~/socially1-3$ meteor run android-device --verbose getting installed version platform android in cordova project checking cordova requirements platform android [[[[[ /socially1-3 ]]]]] => started proxy. => started mongodb. local package version up-to-date: accounts-base@1.2.2 .... local package version up-to-date: webapp-hashing@1.0.5 preparing cordova project app bundle processing mobile-config.js copying resources mobile apps writing new config.xml preparing cordova project platform android warning: testing app on remote device. mobile app able connect local server, make sure device on same network, , network configuration allows clients talk each other (no client isolation). running cordova app platform android options --device android_home=/android-sdk-linux java_home=/usr/lib/jvm/java-7-openjdk-amd64 running: /socially1-3/.meteor/local/cordova-build/platforms/android/gradlew cdvbuilddebug -b /socially1-3/.meteor/local/cordova-build/platforms/android/build.gradle -pcdvbuildarch=arm -dorg.gradle.daemon=true => started app. => app running at: http://localhost:3000/ :prebuild :compiledebugndk up-to-date :predebugbuild :checkdebugmanifest :cordovalib:compilelint :cordovalib:copydebuglint up-to-date :cordovalib:mergedebugproguardfiles up-to-date :cordovalib:prebuild :cordovalib:predebugbuild :cordovalib:checkdebugmanifest :cordovalib:preparedebugdependencies :cordovalib:compiledebugaidl up-to-date :cordovalib:compiledebugrenderscript up-to-date :cordovalib:generatedebugbuildconfig up-to-date :cordovalib:generatedebugassets up-to-date :cordovalib:mergedebugassets up-to-date :cordovalib:generatedebugresvalues up-to-date :cordovalib:generatedebugresources up-to-date :cordovalib:packagedebugresources up-to-date :cordovalib:processdebugmanifest up-to-date :cordovalib:processdebugresources failed failure: build failed exception. went wrong: execution failed task ':cordovalib:processdebugresources'. java.io.ioexception: cannot run program "/android-sdk-linux/build-tools/23.0.2/aapt": error=2, no such file or directory try: run --stacktrace option stack trace. run --info or --debug option more log output. build failed total time: 29.25 secs starting app on android device \ /socially1-3/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ error code 1 command: /socially1-3/.meteor/local/cordova-build/platforms/android/gradlew args: cdvbuilddebug,-b,/socially1-3/.meteor/local/cordova-build/platforms/android/build.gradle,-pcdvbuildarch=arm,-dorg.gradle.daemon=true => errors executing cordova commands: while running cordova app platform android options --device: error: command failed: /socially1-3/.meteor/local/cordova-build/platforms/android/cordova/run --device @ childprocess.exitcallback (/tools/utils/processes.js:137:23) @ childprocess.emit (events.js:98:17) @ process.childprocess.handle.onexit (childprocess.js:820:12) exitwithcode:1
i first thought file 'aapt' not available or no permission there file. 'aapt' file available @ specified path , user has read write permission too.
you trying run 32bit file on 64bit system. try
>file aapt
it should give following result
aapt: elf 32-bit lsb shared object ...
sdk manager installing 32 bit file..
try fix:
(using software centre or command lines) if ubuntu 32-bit os install libgl1-mesa-dev in case of 64-bit os install ia32-libs (ubuntu 13.04 or earlier), or libgl1-mesa-dev:i386 (ubuntu 13.10 , above)
Comments
Post a Comment