本文介绍了由于“一种资源存在不同的情况”错误,Eclipse项目不会在Mac上构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照以下说明将android java源导入
eclipse on mac:





我在Mac上创建了一个新的分区(Mac OS Extended,区分大小写,记录)。
我能够在命令行上成功构建android sdk。



但是,当我尝试创建一个新的eclipse项目,我得到这个错误
这阻止了Eclipse构建Android源代码:

 由于资源存在不同的
case:'/ android / out / target / common / obj / JAVA_LIBRARIES /
android_stubs_current_intermediates / classes / MANIFEST.mf'。
修复问题,然后尝试刷新此项目并构建它,因为它可能
不一致android

你能告诉我如何解决我的问题?

解决方案

我刚遇到这个问题。当您的包名称不一致时,会发生这种情况。我通过关闭Eclipse并协调我的项目文件夹(bin,gen和src)以及我的AndroidManifest.xml中的所有包名来解决它。一旦匹配,我重新打开Eclipse,做了一个清理和构建,错误消失了。


I am trying to following instructions to import android java source toeclipse on mac:

http://source.android.com/source/using-eclipse.html

I did create a new partition ('Mac OS Extended, case sensitive, journaled) on Mac.I was able to build android sdk successfully at command line.

But when I try to create a new eclipse project and I get this errorwhich prevents eclipse from building the android source:

The project was not built due to "A resource exists with a different
case: '/android/out/target/common/obj/JAVA_LIBRARIES/
android_stubs_current_intermediates/classes/MANIFEST.mf'.". 
Fix the problem, then try refreshing this project and building it since it may
be inconsistent android

Can you please tell me how can to fix my problem?

解决方案

I just ran into this issue. It occurs when you have a case mismatch on package names. I resolved it by closing Eclipse and reconciling all package names in my project folder (under bin, gen and src) as well as in my AndroidManifest.xml. Once everything matched, I reopened Eclipse, did a Clean and Build and the error went away.

这篇关于由于“一种资源存在不同的情况”错误,Eclipse项目不会在Mac上构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 14:26