Mac Android Eclipse configuration issues

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.