Correction:
Android_home=/applications/android/adt-bundle-mac-x86_64-20140321/sdk
Launchctl setenv android_home $ANDROID _home
http://blog.csdn.net/wirelessqa/article/details/17911811
The following information appears for the Android project running MVN compile:
No Android SDK path could be found. Configure it in the POM using <sdk><path>...</path></sdk> or <properties>< sdk.path>...</sdk.path></properties> or on command-line using-dandroid.sdk.path= ... or by setting environment variable Android_home [Help 1]
Workaround:
Edit/etc/launchd.conf, if not, add the following information:
[Plain]View Plaincopy
- bixiaopengdeimac:~ bixiaopeng$ cat/etc/launchd.conf
- Setenv Android_home users/bixiaopeng/software/adt-bundle-mac-x86_64-20131030
Restart the computer after saving, and then run MVN compile will be OK
Mac using Maven to hit Android package, error: No android SDK path could be found. Solutions