1. 程式人生 > >Android -- the project was not built due to a resource exists with a different case...

Android -- the project was not built due to a resource exists with a different case...

進行編碼時,工程前面莫名有個紅X,正當百思不得其解時,發現在[problems]下有如下的訊息輸出

------

the project was not built due to a resource exists with a different case...

------

按照提示對程式碼再次進行了check,果然是大小寫出了問題,具體如下:

  包名為:com.example.Android_intent3

   但很奇怪的是.java檔案中AndroidMaifest.xml中引用該包的地方都變成了小寫,但程式沒有明確的報錯。。。

   修改前:package="com.example.android_intent3"

   修改後:package="com.example.Android_intent3"

   再次執行程式正常。

出了問題一定要仔細看ecplise的提示資訊。