Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse ADT 22.6.2 still gives the error "java.lang.NullPointerException"

This issue is supposed to be fixed by the latest ADT release(22.6.2), but I'm still receiving the same error when I'm trying to create an empty Android Application Project. Here is the exact error:

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

Am I missing something here? btw I'm using OSX-Maverics 10.9.2

like image 594
Lorenborn Avatar asked Apr 18 '14 15:04

Lorenborn


1 Answers

ADT bundle does not work with the Oracle Java 7 SE JDK, failing with an NPE in the Android Application Project wizard.

Here's a workaround that lets you keep Java 7 as the default but run ADT with Java 6 when you have both installed. Bring up $ADT_DIR/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini in an editor. (Eclipse.app is a hidden directory)

Before the -vmargs line, insert these two lines:

-vm

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

like image 178
user3893782 Avatar answered Sep 25 '22 15:09

user3893782