用Eclipse创建android项目后src报错,怎么解决?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了用Eclipse创建android项目后src报错,怎么解决?相关的知识,希望对你有一定的参考价值。

在eclipse中创建android项目,src目录和layout目录下为空,现在开始解决这个问题(这只是一个开始)。

在网上查找答案,说是eclipse版本和adt版本不兼容。
第一步;查看eclipse的版本号。
Help-->About Eclipse--->选择eclipse的logo图标

第二步:查看adt插件的版本号
Help->About Eclipse--->点击,installation Detail

第三步:如果版本号兼容,那么就更新adt版本
Help--->Intal new software--->在work with 输入:https://dl-ssl.google.com/android/eclipse/

然后一直点击next--> .....最后点击完成finish。
第四步:
此时如果报了这个错误。

经查找,还是版本不兼容,我然后卸载adt,但是最后报了uninstalling software has eccountered a problem问题这样来来回回好几次,重启Eclipse-安坐adt--卸载adt,还是不好。
第五步:
最后打开了Android sdk Manager。
Tools ---android sdk Tools 更新了一下
Extras--android support library和android support Repository 更新了一下。
参考技术A 查看控制栏报的什么错,然后百度解决方法。

创建maven项目后pom.xml报错

Multiple annotations found at this line:
- Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources failed: Plugin org.apache.maven.plugins:maven-
resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-resources-plugin:jar:
2.5 () (org.apache.maven.plugins:maven-resources-plugin:2.5:resources:default-resources:process-resources)
- Execution default-testResources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:testResources failed: Plugin
org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: The following artifacts could not be resolved:
org.apache.maven.reporting:maven-reporting-api:jar:2.0.6, commons-cli:commons-cli:jar:1.0, org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4,
org.apache.maven.shared:maven-filtering:jar:1.0, org.codehaus.plexus:plexus-interpolation:jar:1.12, org.sonatype.plexus:plexus-build-api:jar:0.0.4: Failure to
transfer org.apache.maven.reporting:maven-reporting-api:jar:2.0.6 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will
not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact
org.apache.maven.reporting:maven-reporting-api:jar:2.0.6 from/to central (http://repo.maven.apache.org/maven2): No response received after 60000
(org.apache.maven.plugins:maven-resources-plugin:2.5:testResources:default-testResources:process-test-resources)
- Failure to transfer org.apache.maven.surefire:surefire:pom:2.10 from http://repo.maven.apache.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact
org.apache.maven.surefire:surefire:pom:2.10 from/to central (http://repo.maven.apache.org/maven2): No response received after 60000

参考技术A Multiple annotations found at this line:

有一行写重复了吧

以上是关于用Eclipse创建android项目后src报错,怎么解决?的主要内容,如果未能解决你的问题,请参考以下文章

用eclipse创建一个maven管理的项目,创建完成后pom.xml报错!!急求怎么解决!!

请问下eclipse中加载进来的项目src报错怎么解决,求大神帮帮忙,还有jsp项目也是错误的

eclipse启动项目后无法修改js文件

Eclipse中在android项目中出现新建一个Activity后,出现整个project的报错以及包导入以后无法执行等等情况分析。

项目在eclipse中正常,在idea中报错

eclipse 导航器中没有src和bin文件夹