In Mac OSX use ADT bundle to step over the pit

Source: Internet
Author: User

Objective

This blog to organize the author in the Mac under the use of ADT bundle of pits, Google Now also does not support eclipse, developers also to abandon Eclipse, But given that most Java developers are more accustomed to developing Android under Eclipse, Android Studio uses a certain threshold, such as its cost-performance, interface, and operation-like idea. Either Eclipse or Android studio has a corresponding Windows version, Mac version, Linux version, the Windows version does not have to say more, support is better, compatibility is higher, but after the Mac upgrade, The default version of 1.6 jdk has been removed, so the MAC system using ADT bundle or Android Studio can not run, we have to configure the Java environment, the following for several problems to provide a corresponding solution.

ADB Bundle

Google is a wall, you can not feel free to visit the Android official website, want to get the latest version of the IDE is best or go to the official website to download, it is recommended to buy a VPN, more stable than ziyoumen and free VPN.
ADT Bundle for Mac latest version official website

The Java version of the ADT bundle's pit

After upgrading from Mac OSX to 10.8, the 1.6 version of the JDK that came with the system was deleted, and we were unable to use the ADT bundle or Android studio, and the Oracle website couldn't find the Java 1.6 version. But can be found on the Apple website: jdk1.6 version

After the download installation is successful, the following error message does not appear:

Start eclipse again and run correctly.

Another solution is to modify the Info.plist file:
To modify a file:
/library/java/javavirtualmachines/jdk1.7.0_45.jdk/contents/info.plist
To the following form:

<Key>jvmcapabilities</key><array> <string>commandline</string><string>jni </string>< string>bundledapp</string>< Span class= "Hljs-tag" ><string>webstart</string><string>applets </string></ ARRAY>             
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8

It is recommended to use the first solution.

ADT bundle pits are unable to create the project normally

The issue that started eclipse was resolved earlier, but the following error occurred in the last step of creating the project:

**java.lang.nullpointerexception
Errors running builder ' Android Resource Manager ' on Project ' XXX ' * *

I am also drunk, this problem toss the author for a long time, later found on the Internet solution:
Under this path Adt-bundle-mac-x86_64-20140702/eclipse/eclipse/contents/macos locate the Eclipse.ini file and open it using the document editor:

At the end, add the following configuration:

-vm
/system/library/frameworks/javavm.framework/versions/1.6/commands/java

Finally the problem is solved, and mom never has to worry that I can't create an Android project.

About the use of eclipse the author stepped on a lot of pits, if the reader has encountered any problems, you can leave a message to me, the author of the subsequent finishing add to the blog.

Reprint Please specify: It_xiao Wizard
Blog Address: http://blog.csdn.net/wwj_748
Reference: from know

On Mac OSX using ADT Bundle-stepping pits

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.