meteor / solomo

The demo we showed at Meteor Devshop August 2014 of Meteor Mobile integration. This code has moved to the examples folder in meteor/mobile-packages.
30 stars 5 forks source link

Prerequisites for Android #1

Open TMorgan99 opened 9 years ago

TMorgan99 commented 9 years ago

What are the prerequisites for Android? When I run meteor run android, the following appears:

$ meteor run android /home/tim/.meteor/packages/meteor-tool/.1.0.14-cordova4.i41dai++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/android_bundle/.cordova/lib/ios/cordova/3.5.0/bin/create: 33: /home/tim/.meteor/packages/meteor-tool/.1.0.14-cordova4.i41dai++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/android_bundle/.cordova/lib/ios/cordova/3.5.0/bin/create: Syntax error: "(" unexpected Error: /home/tim/.meteor/packages/meteor-tool/.1.0.14-cordova4.i41dai++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/android_bundle/.cordova/lib/ios/cordova/3.5.0/bin/create: Command failed with exit code 2 at ChildProcess.whenDone (/home/tim/.meteor/packages/meteor-tool/.1.0.14-cordova4.i41dai++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:755:16) at Process.ChildProcess._handle.onexit (child_process.js:822:5)

Creating ios project...

stubailo commented 9 years ago

Hi TMorgan99!

There shouldn't be any prerequisites. I'll look into what's causing this issue. Could you please also tell me what your operating system and CPU architecture are (32 or 64 bit?)

TMorgan99 commented 9 years ago

Hi Sashko, Im using Ubuntu, level T .64bit Apt-get installed the JDK. The box is Mostly used for rails ..

I've not been able to get success installing the Android kit from google yet, for some reason. Had it running in previous ubuntu .

Timmor0004 18551W On 2014-08-25 9:58 AM, "Sashko Stubailo" notifications@github.com wrote:

Hi TMorgan99!

There shouldn't be any prerequisites. I'll look into what's causing this issue. Could you please also tell me what your operating system and CPU architecture are (32 or 64 bit?)

— Reply to this email directly or view it on GitHub https://github.com/stubailo/meteor-mobile-demo/issues/1#issuecomment-53291475 .

stubailo commented 9 years ago

Are you saying you tried installing the Android tools manually and it didn't work? Interesting. I tested the install script on a fresh Ubuntu 14.04 and it seemed to work fine, I'm not sure how to reproduce this.

Have you tried installing Cordova separately with npm? http://cordova.apache.org/docs/en/3.5.0//guide_cli_index.md.html#The%20Command-Line%20Interface

TMorgan99 commented 9 years ago

No, I spoke too soon!

It still won't run the meteor; but now I can run Android studio.. Next I will try to get Cordova from npm..

Perhaps I should try a fresh new Ubuntu box... On 2014-08-27 3:11 PM, "Sashko Stubailo" notifications@github.com wrote:

Are you saying you tried installing the Android tools manually and it didn't work? Interesting. I tested the install script on a fresh Ubuntu 14.04 and it seemed to work fine, I'm not sure how to reproduce this.

Have you tried installing Cordova separately with npm? http://cordova.apache.org/docs/en/3.5.0//guide_cli_index.md.html#The%20Command-Line%20Interface

— Reply to this email directly or view it on GitHub https://github.com/stubailo/meteor-mobile-demo/issues/1#issuecomment-53648404 .

pwujek commented 9 years ago

I also experience the same problem on Ubuntu 14.04, with the same exception thrown.

I also tried 'meteor update' and get:

Could not springboard to release: CORDOVA-PREVIEW@5: could not download tool in meteor-tool@1.0.26-cordova5

These are the messages I get:

~/meteor/meteor-mobile-demo$ sudo meteor run android Android 4.4.2 is a basic Android platform. Do you wish to create a custom hardware profile [no]Created AVD 'meteor' based on Android 4.4.2, ARM (armeabi-v7a) processor, with the following hardware config: hw.lcd.density=240 hw.ramSize=512 vm.heapSize=48 /home/paul/.meteor/packages/meteor-tool/.1.0.14-cordova4.hhzdja++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/android_bundle/.cordova/lib/ios/cordova/3.5.0/bin/create: 33: /home/paul/.meteor/packages/meteor-tool/.1.0.14-cordova4.hhzdja++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/android_bundle/.cordova/lib/ios/cordova/3.5.0/bin/create: Syntax error: "(" unexpected Error: /home/paul/.meteor/packages/meteor-tool/.1.0.14-cordova4.hhzdja++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/android_bundle/.cordova/lib/ios/cordova/3.5.0/bin/create: Command failed with exit code 2 at ChildProcess.whenDone (/home/paul/.meteor/packages/meteor-tool/.1.0.14-cordova4.hhzdja++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:755:16) at Process.ChildProcess._handle.onexit (child_process.js:822:5)

dd3141592 commented 9 years ago

This is an old thread but I ran into a similar issue - I'm running Ubuntu 14.04 with VirtualBox on a windows machine. Turns out you can't run the android emulator on a virtual machine. Don't know if that was .your situation or not.