Error Injecting: Com.jayway.maven.plugins.android.phase01generatesources.generatesourcesmojo
I'm trying to generate a basic Android project on a Mac (OS version Yosemite) with Apache Maven 3.2.1 and Java version: 1.7.0_55. I followed http://stand.spree.de/wiki_details_mav
Solution 1:
The combination of Michael's and Fred's solutions worked for me with Maven 3.3.3:
<plugin><groupId>com.jayway.maven.plugins.android.generation2</groupId><artifactId>android-maven-plugin</artifactId><version>3.8.2</version><extensions>true</extensions><configuration><sdk><platform>17</platform></sdk></configuration></plugin>
Platform 17 is a version of the API I have installed in the Android SDK.
Solution 2:
I solved this problem using in my pom.xml:
<properties><android.maven.version>3.8.2</android.maven.version></properties>
Solution 3:
Possible solution seems to be to downgrade from Maven 3.2.5 to 3.0.5 according to https://code.google.com/p/maven-android-plugin/issues/detail?id=395.
That seemed to get me past the error above but then I ran into another problem: Error building Android project with Maven: Platform/API level 16 not available
Post a Comment for "Error Injecting: Com.jayway.maven.plugins.android.phase01generatesources.generatesourcesmojo"