Google Chrome App while running on android emulator giving error - android

I'm trying to run a simple Hello chrome app on android emulator. After navigating to the app directory when I run
cca emulate android
After some time I get an error:
Here is the full cmd line response:
cca v0.4.1
Running command: /home/jay/HelloChromeAppOnAndroid/platforms/android/cordova/run --emulator
WARNING : no emulator specified, defaulting to myAvd
Waiting for emulator...
emulator: emulator window was out of view and was recentered
Booting up emulator (this may take a while).......................BOOT COMPLETE
FAILURE: Build failed with an exception.
* Where:
Build file '/home/jay/HelloChromeAppOnAndroid/platforms/android/build.gradle' line: 175
* What went wrong:
A problem occurred evaluating root project 'android'.
> No match found
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 3.074 secs
/home/jay/HelloChromeAppOnAndroid/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /home/jay/HelloChromeAppOnAndroid/platforms/android/gradlew with args: assembleArmv7Debug,-b,/home/jay/HelloChromeAppOnAndroid/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-x,lint,-x,lintVitalX86Release,-x,lintVitalArmv7Release,-x,compileLint,-x,copyReleaseLint,-x,copyDebugLint
Error: /home/jay/HelloChromeAppOnAndroid/platforms/android/cordova/run: Command failed with exit code 8
at ChildProcess.whenDone (/home/jay/.nvm/v0.10.32/lib/node_modules/cca/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)

Seem's like the problem has been fixed. I had posted an issue in GitHub and it's resolved now.
All you got to do is
npm install -g cca
to update the toolchain.

Related

Meteor while running on android device gives this error

Suddenly out of no where I am seeing this issue with starting app on device.
I have been struggling for long with no luck while trying to start meteor on android device.
I use meteor run android-device to run on device btw!
=> Errors executing Cordova commands:
While running Cordova app for platform Android with options --device:
Error: Command failed:
C:\Users\ally\Documents\GitHub\Portal-Meteor\portalMeteor\.meteor\local\cordova-build\platforms\android\cordova\run
--device --device
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at
http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error code 1 for command: cmd with args:
/s,/c,"C:\Users\ally\Documents\GitHub\Portal-Meteor\portalMeteor\.meteor\local\cordova-build\platforms\android\gradle
w
cdvBuildDebug -b
C:\Users\ally\Documents\GitHub\Portal-Meteor\portalMeteor\.meteor\local\cordova-build\platforms\android\build.gradle
-PcdvBuildArch=arm -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true" undefined
at ChildProcess.exitCallback (C:\tools\utils\processes.js:151:23)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:820:12)
C:\Users\ally\AppData\Local\.meteor\packages\meteor-tool\1.3.2_4\mt-os.windows.x86_32\isopackets\cordova-support\npm\nod
e_modules\meteor\promise\node_modules\meteor-promise\promise_server.js:116
throw error;
^
ExitWithCode:1
removing and re-installing android studio worked :)

Cordova ionic application won't start on device

my case the driver is ok and the device is connected:
adb devices
List of devices attached
7F602C136346331 device
but when i execute this command:
ionic run android -l -c
i found this error :
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':CordovaLib:processDebugResources'.
java.io.IOException: Cannot run program "/home/binov1/android-sdk-linux/build-tools/23.0.1/aapt": error=2, No
such file or directory
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.28 secs
/home/binov1/workElolinkMobile/ElolinkProject/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^ Error code 1 for command: /home/binov1/workElolinkMobile/ElolinkProject/platforms/android/gradlew
with args:
cdvBuildDebug,-b,/home/binov1/workElolinkMobile/ElolinkProject/platforms/android/build.gradle,-PcdvBuildArch=arm,-Dorg.gradle.daemon=true
ERROR running one or more of the platforms: Error:
/home/binov1/workElolinkMobile/ElolinkProject/platforms/android/cordova/run:
Command failed with exit code 8 You may not have the required
environment or OS to run this project
Is a problem with the build.
Install the andoid sdk
https://developer.android.com/sdk/index.html#download
verify tools and android tools is well declared in the path
export PATH=$PATH:/path/to/tools
export PATH=$PATH:/path/to/platform-tools
update android run command
> android update sdk
and try again.

Error Build Failed-Cordova windows 8

While trying to build a project I got this error
I was following this ,everything seemed fine till
"cordova build".
I've tried to downgrade node and many other solutions suggested in some similar questions but I've had no luck.
OS: Windows 8.1 x64
Cordova v 5.1.1
Ant version 1.9.4
Node v0.12.7
npm 2.11.3
Android sdk and Java are probably installed and added to Environment variables PATH
also sdk/tools and /platform-tools are also included in PATH
Error
C:\Users\user-\dua>cordova build
Running command: cmd "/s /c "C:\Users\user-\dua\platforms\android\cordova\build.
bat""
ANDROID_HOME=C:\android-sdk-win
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_51
Running: C:\Users\user-\dua\platforms\android\gradlew cdvBuildDebug -b C:\Users\
user-\dua\platforms\android\build.gradle -Dorg.gradle.daemon=true
FAILURE: Build failed with an exception.
Where:
Build file 'C:\Users\user-\dua\platforms\android\build.gradle' line: 185
What went wrong:
A problem occurred evaluating root project 'android'.
Invalid revision: 23.0.0.3
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 14.269 secs
C:\Users\user-\dua\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "C:\Users\user-\dua\platforms\and
roid\gradlew cdvBuildDebug -b C:\Users\user-\dua\platforms\android\build.gradle
-Dorg.gradle.daemon=true"
ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 1
at ChildProcess.whenDone (C:\Users\user-\AppData\Roaming\npm\node_modules\co
rdova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)

ionic build android error when using cordova build --release android

I am trying to build an Ionic project on EC2 but after everything has been installed, I got a build failure error when running:
cordova build --release android
Here is the error message I have received:
:CordovaLib:processReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':CordovaLib:processReleaseResources'.
java.io.IOException: Cannot run program "/home/ec2-user/android/build-tools/22.0.1/aapt": error=2, No such file or directory
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 11.093 secs
I have inspected the folder and I can find the file it's complaining about. So not really sure what went wrong.
It turned out that I need to install 32 bit glibc to execute 64 bit binaries, and running this solved the issue for me.
yum install zlib.i686 libstdc++.i686 ncurses-libs.i686 libgcc.i686

geetting error while running ionic crosswalk integration

i am new to ionic framework, i was unable to get the inspect elements when i debug my application on my android mobile, so i tried installing crosswalk
with the following steps
npm install -g ionic
ionic platform add android
ionic browser add crosswalk
i had followed the steps and even tried uninstalling the application and reverting the crosswalk, but the error remains same. this is the error which i am facing.
* What went wrong:
Execution failed for task ':processArmv7DebugManifest'.
> Manifest merger failed with multiple errors, see logs
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 41.063 secs
G:\GTM\Ionic\ionic programs\recipes\platforms\android\cordova\node_modules\q\q.j
s:126
throw e;
^
Error code 1 for command: cmd with args: /s /c ""G:\GTM\Ionic\ionic programs\rec
ipes\platforms\android\gradlew" cdvBuildDebug -b "G:\GTM\Ionic\ionic programs\re
cipes\platforms\android\build.gradle" -PcdvBuildArch=arm -Dorg.gradle.daemon=tru
e"
ERROR running one or more of the platforms: Error: cmd: Command failed with exit
code 1
You may not have the required environment or OS to run this project
can anyone help me with this error.
thanks in advance.

Categories

Resources