No Android SDK path could be found. You may configure it in the plugin




Asked on November 01, 2014
Hi All,

I am new to Android.  I am trying to use maven in android project.
I got the below error. Need help.

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:andr
oid-maven-plugin:3.9.0-rc.1:generate-sources (default-generate-sources) on proje
ct android: No Android SDK path could be found. You may configure it in the plug
in configuration section in the pom file using <sdk><path>...</path></sdk> or <p
roperties><android.sdk.path>...</android.sdk.path></properties> or on command-li
ne using -Dandroid.sdk.path=... or by setting environment variable ANDROID_HOME
-> [Help 1]




Replied on November 01, 2014
You need to use settings.xml to configure android-sdks home as 
<settings>
  <profiles>
    <profile>
        <id>android-settings</id>
        <properties>
            <android.sdk.path>user-home\android-sdks</android.sdk.path>
        </properties>
    </profile>
  </profiles>
  <activeProfiles>
        <activeProfile>android-settings</activeProfile>
  </activeProfiles>
</settings> 

and put this file in .m2 folder.


Write Answer











©2024 concretepage.com | Privacy Policy | Contact Us