Problem:
1. Write Java code, but want to use eclipse, but Eclipse is downloaded Android version, so there is no JDT plugin, so need to install a JDT.
2. Because the landlord is using the Mac so the system comes with java1.6, but the landlord also to use the Android studio to develop Android 5.0 to jdk1.7, so they upgraded to java1.7.
3.android Eclipse ADT and 1.7 are not compatible, and problems can occur when you create an app.
Error:
Java.lang.NullPointerException
Errors running builder ' Android Resource Manager ' on Project ' XXX '
Workaround:
Mac found Eclipse.app right-click to display the contents of the package, find the Eclipse.ini file under the MacOS file, open, under "-vmargs" Add two lines of code:
-vm
/system/library/frameworks/javavm.framework/versions/1.6/commands/java
Reboot.
Add JDT Tools Online:
In Eclipse, select Help->install new software.
And then work with inside add address: Http://download.eclipse.org/releases/luna,
After waiting in the following software check check Programminglanguages
Then find the JDT tool in the subdirectory:
Tick OK, click Next, wait for the installation to succeed, reboot!!
Mac Android Eclipse configuration issues