zoukankan      html  css  js  c++  java
  • GoBelieve,IMSDK android版开发环境问题

    GoBelieve,IMSDK android版开发环境问题

     --- Mac下,android Studio 需要java1.7配置问题

    On a mac, check your java version by running this command:

    java -version

    And you should see a version higher than 1.7. If not, then just run your system updates to get the latest version of java. (Click the "Apple" logo in the upper left and choose About this Mac then click the Software Update... button and install the latest java from there.) In other words, get your latest java from Apple's Updates, if you can–it's easier that way.

    Once you have the latest version, then simply run the following command:

    /usr/libexec/java_home

    This will tell you your Java Home location, which is what Android Studio wants. For me, this value was

    /Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home

    If you'd like to set this as a default for all projects, follow the instructions in this related answer(which deals with how to set your Android SDK but the Java SDK is set in the same screen). In a nutshell, close all projects to get to the Welcome to Android Studio screen then select >Configure > Project Defaults > Project Structure > Android SDK and then input your JDK location, given by the java_home utility.

    I just took these steps while creating a project targeting "Lollipop" and it worked like a charm.

    ==================

    http://stackoverflow.com/questions/16636146/using-android-studio-with-java-1-7

  • 相关阅读:
    49.把字符串转发为整数(python)
    48.不用加减乘除做加法(python)
    47.1+2+3+...+n(python)
    46.孩子们的游戏(python)
    45.扑克牌顺子(python)
    44.翻转单词序列(python)
    43.左旋转字符串(python)
    42.和为S的两个数字(python)
    41.和为S的连续整数序列(python)
    39.平衡二叉树(python)
  • 原文地址:https://www.cnblogs.com/nuanshou/p/4423470.html
Copyright © 2011-2022 走看看