I am new to Android with maven environment. I am trying to run a sample application, but I am having problems. When I select the Project and do MAVEN->Clean Install, I get following Error:
我是使用maven环境的Android新手。我正在尝试运行一个示例应用程序,但是我遇到了问题。当我选择项目并做MAVEN->清洁安装时,我得到以下错误:
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:andr
oid-maven-plugin:3.6.0:generate-sources (default-generate-sources) on project ut
ils-android: Execution default-generate-sources of goal com.jayway.maven.plugins
.android.generation2:android-maven-plugin:3.6.0:generate-sources failed: A requi
red class was missing while executing com.jayway.maven.plugins.android.generatio
n2:android-maven-plugin:3.6.0:generate-sources: Lorg/sonatype/aether/RepositoryS
ystem;
Please, not I have 3.1.1 version of Meven, also I am using Eclipse on Windows 7 system.
拜托,我没有3.1.1版的Meven,我也在Windows 7系统上使用Eclipse。
Thanks
谢谢
1 个解决方案
#1
1
@Ricardo Gladwell: Thanks for your replies.
@Ricardo Gladwell:谢谢你的回复。
Actually I had to reinstall maven 3.0.5 to avoide this error. But before that I completly removed .m2 directory from /Users/Username/ folder.
实际上,我必须重新安装maven 3.0.5才能避免这个错误。但在此之前,我将.m2目录从/Users/Username/文件夹中删除。
#1
1
@Ricardo Gladwell: Thanks for your replies.
@Ricardo Gladwell:谢谢你的回复。
Actually I had to reinstall maven 3.0.5 to avoide this error. But before that I completly removed .m2 directory from /Users/Username/ folder.
实际上,我必须重新安装maven 3.0.5才能避免这个错误。但在此之前,我将.m2目录从/Users/Username/文件夹中删除。