Note: The problem described here seems to be only for Mac OSX & JDK 7 is installed.
After failing to upgrade Android SDK tools to version 23 because of dependency issue (documented at https://code.google.com/p/android/issues/detail?id=72912), I was searching for a solution for the following error message.
One suggestion was to download a fresh copy of eclipse directly from http://www.eclipse.org, and do a fresh install of Android SDK tools (from repository : https://dl-ssl.google.com/android/eclipse/)
After downloading eclipse, and installing Android SDK, I decided to create a basic "HelloWorld" android app, to see if everything is working fine - and came across the following error, when clicking "Finish" button on android project creation wizard:
Errors running builder 'Android Resource Manager' on Project java.lang.NullPointerException
Clicking "Ok" will still create the project, but will not have any activity code generated.
To resolve the issue, do the following:
After failing to upgrade Android SDK tools to version 23 because of dependency issue (documented at https://code.google.com/p/android/issues/detail?id=72912), I was searching for a solution for the following error message.
Cannot complete the install because of a conflicting dependency. Software being installed: Android Development Tools 23.0.1.1256982
(com.android.ide.eclipse.adt.feature.feature.group 23.0.1.1256982) Software currently installed: Android Development Tools
22.6.3.v201404151837-1123206
One suggestion was to download a fresh copy of eclipse directly from http://www.eclipse.org, and do a fresh install of Android SDK tools (from repository : https://dl-ssl.google.com/android/eclipse/)
After downloading eclipse, and installing Android SDK, I decided to create a basic "HelloWorld" android app, to see if everything is working fine - and came across the following error, when clicking "Finish" button on android project creation wizard:
Errors running builder 'Android Resource Manager' on Project java.lang.NullPointerException
Clicking "Ok" will still create the project, but will not have any activity code generated.
To resolve the issue, do the following:
- 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).
- Right-Click on "Eclipse.app" file, and select "Show Package Contents"
- Once inside package, go to Contents-->MacOS, and open "eclipse.ini"
- Just before the "-vmargs", add the following:
-vm
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java - Here is my "Before" and "After" eclipse.ini file
Before After - Run eclipse again, and you should be able to create the project without any problems.
14 comments:
Awesome Gopal, worked like a charm for me
Worked for me too..Thanks
Thank you so much. It works great now.
Worked like a charm
This worked for me also. Thank you Gopal.
Works!!! God bless you haha
I followed your instructions and when I relaunched the application it gives me the following error message:
A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse.
No Java virtual machine
was found after searching the following locations:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java - See more at: http://blog.nairplanet.com/2014/07/errors-running-builder-android-resource.html#sthash.KPbqjNq1.png2tXKQ.dpuf
Any advise?
Hi Anon, you need to install some java - jdk or jre - to get eclipse to work. Also, Gopal has stated that this post is basically for a Mac but I'm wondering what corresponding java path it is on a windows machine but the ini file can be accessed from the eclipse installation folder
Thanks for helping me out!
Hi.. I have the same problem as above and I have already installed jdk-7u71-macosx-x64 & JavaForOSX2014-001... but it still doesn't work.. Could you help me?
Thanks. this think was pain in my butt for weeks.
Thanks.
Worked great
Thank your!!!!!!!!!!!! You came to my rescue!!!! Good Job!
I want to print barcode images in Eclipse BIRT, your article is pretty good and give me some references. Thank you so much for sharing.
Post a Comment