MobileChromeApps / mobile-chrome-apps

Chrome apps on Android and iOS
BSD 3-Clause "New" or "Revised" License
2.5k stars 347 forks source link

cca 0.7.0 fails to build in test app #575

Closed AmaanC closed 9 years ago

AmaanC commented 9 years ago
$ cca create Test
$ cd Test
$ sudo cca build

cca v0.7.0
## First-time build. Detecting available SDKs:
Android Development: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.

/usr/local/lib/node_modules/cca/node_modules/q/q.js:155
                throw e;
                      ^
No usable build environment could be found. Please refer to our installation guide:
https://github.com/MobileChromeApps/mobile-chrome-apps/blob/master/docs/Installation.md

Although, I do have android in my PATH. Running android right after that error brings up the Android SDK manager.

AmaanC commented 9 years ago

Oh, also:

$ cca checkenv
cca v0.7.0
Android Development: SDK configured properly.
AmaanC commented 9 years ago

Okay, I'm an idiot. The problem was me using sudo before cca build. I was doing that because I was getting EACCESS errors earlier, but I'm not sure what fixed them. Works now. Sorry about the confusion!