Errors running builder 'Android Resource Manager' on project 'MyFirstApp'解決方案

eclipse+ADT開發安卓APP,今天把Android SDK manager升級之後,順便升級了ADT插件到23.0.7,發現不能愉快的新建工程了,一路next到最後一步你會發現:

Errors occurred during the build.
    Errors running builder 'Android Resource Manager' on project 'MyFirstApp'.
    java.lang.NullPointerException

這個錯誤出現在安裝了jdk7的mac電腦上,stackoverflow上的解決方案:



1. Go to your eclipse directory and find "Eclipse.app" file. Just to 
   be on safe side, back up this file somewhere (Just the Eclipse.app file).
2. Right-Click on "Eclipse.app" file, and select "Show Package 
   Contents"
3. Once inside package, go to Contents-->MacOS, and open        
   "eclipse.ini"
4. Just before the "-vmargs", add the following:

-vm
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java

5. Run eclipse again, and you should be able to create the project  
    without any problems.

發佈了44 篇原創文章 · 獲贊 24 · 訪問量 18萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章