Mac Uninstall and install SDK

Source: Internet
Author: User

Today use as when encountered a problem, can not open tools-->android-->android Device Monitor, so after online random find, seemingly with the machine now installed JDK 9.0.1 conflict, the following to try:

The first step is to uninstall the current JDK

Input

    • sudo rm-fr/library/internet\ plug-ins/javaappletplugin.plugin
    • sudo rm-fr/library/preferencespanes/javacontrolpanel.prefpane
    • sudo rm-rf/library/java/javavirtualmachines/jdk-9.0.1.jdk

Where you can find the current version by
Input: ls/library/java/javavirtualmachines/
Output: JDK-9.0.1.JDK

Step Two Install JDK1.8

After downloading the JDK, click Continue until finished.

You can see the jdk1.8 in the terminal input Open/library/java/javavirtualmachines

Mac automatically configures paths that do not need to be manually configured

Mac Uninstall and install SDK

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.