So it seemed like the version of adb installed by the latest android API isn’t compatible with OS 10.7. When running adb directly I was getting an Illegal argument 4 error which after some research seems to be telling me it is not made for my OS. I am now running an older version of adb which at least runs now.
New error now. See below.
Starting app on Android Emulator -
ERROR : No emulator images (avds) found.
Download desired System Image by running: /Users/joe/Library/Android/sdk/tools/android sdk
Create an AVD by running: /Users/joe/Library/Android/sdk/tools/android avd
HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver
=> Errors executing Cordova commands:
While running Cordova app for platform Android with options --emulator:
Error: Command failed: /Users/joe/simple-todos/.meteor/local/cordova-build/platforms/android/cordova/run --emulator
at ChildProcess.exitCallback (/tools/utils/processes.js:137:23)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:820:12)
Now I have created an emulator finally. Intel based AVDs don’t seem to work on OS 10.7 so I finally found a combination that gave me a ARM Nexus 7 AVD. I don’t know why it is telling me “No emulator images found”.
Also when I try to run
directly I get this error
Hmmm, it seems this incompatibility with OS X 10.7 is a known issue with the current Android tools. What version did you manage to install?
I’m not sure why Intel based AVDs don’t work and if there is something you can do about it, but without HAXM acceleration I’m afraid the emulator will be so slow it is practically unusable. You would be better off testing on a device. Also, you’ll have to make sure the AVD is created using API 22.
(Running the platforms/android/cordova/run command directly requires Node to be in the path. Meteor includes its own version of Node, but doesn’t install it globally.)
I gave up on getting Meteor to work on Mac OS 10.7. Think the Meteor folks need to add a disclaimer that building the app on 10.7 doesn’t work. Luckily I had a 20GB partition that I installed Ubuntu on. Got things working there fine.