"cordova platform add android" was failing on linux with an error about the android-sdk-macosx
don@localhost:~/tmp/foo$ cordova platform add android [Error: An error occured during creation of android sub-project. BUILD FAILED /usr/local/lib/node_modules/cordova/lib/cordova-android/framework/build.xml:133: Cannot find /Applications/android-sdk-macosx/tools/ant/build.xml imported from /usr/local/lib/node_modules/cordova/lib/cordova-android/framework/build.xml cordova 2.7.4 node 0.10.8 npm 1.2.23 Ubuntu 12.04.2 LTS | crouton | ChromeOS == The problem was cordova was installed with sudo. The eventual solution was to chown -R the cordova npm directory. At first I tried editing sdk.dir in /usr/local/lib/node_modules/cordova/lib/cordova-android/framework/local.properties which seemed like a bad idea. CB-2604 says there should have been a warning about a root install but I never got one. https://issues.apache.org/jira/browse/CB-2604?focusedCommentId=13637291&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13637291 Thoughts on the best way to handle this?
