eclipse - maven android error reading file source.properties -


i trying build simple hello world android app. getting error:

failed execute goal com.jayway.maven.plugins.android.generation2:android-maven-  plugin:3.9.0-rc.2:generate-sources (default-generate-sources) on project ndbc:  execution default-generate-sources of goal  com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.9.0-rc.2:generate- sources failed: error reading /storage/code/android-ndbc/ndbc/~/android-sdks/tools /source.properties -> [help 1] 

i using maven 3.2.1

here pom:

<dependencies>     <dependency>         <groupid>com.google.android</groupid>         <artifactid>android</artifactid>         <version>4.1.1.4</version>         <scope>provided</scope>     </dependency> </dependencies> <build>     <finalname>ndbc</finalname>     <pluginmanagement>         <plugins>             <plugin>                 <groupid>com.jayway.maven.plugins.android.generation2</groupid>                 <artifactid>android-maven-plugin</artifactid>                 <version>3.9.0-rc.2</version>                 <extensions>true</extensions>             </plugin>         </plugins>     </pluginmanagement>     <plugins>         <plugin>             <groupid>com.jayway.maven.plugins.android.generation2</groupid>             <artifactid>android-maven-plugin</artifactid>              <configuration>                 <sdk>                     <platform>19</platform>                 </sdk>                                 </configuration>         </plugin>     </plugins> </build> 

i believe have environment vars set correctly:

export android_sdk_home=/home/michel/android-sdks export android_home=/home/michel/android-sdks export path="$path:~/android-sdks/tools" export path="$path:~/android-sdks/platform-tools" 

when run mvn install or mvn android:apk same error.

what weird when run in eclipse same error, if run through avm works fine, building apk seems problem.

any ideas?

sasikumar m had correct path.. (pun intended)

the android-maven-plugin not picking android_home reason. setting in properties did not work, setting in plugin did. set path in configuration. here pom fragment.

            <plugin>             <groupid>com.jayway.maven.plugins.android.generation2</groupid>             <artifactid>android-maven-plugin</artifactid>             <configuration>                 <sdk>                     <path>/home/michel/android-sdks</path>                     <platform>19</platform>                 </sdk>             </configuration>         </plugin> 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -