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 chooseAbout this Macthen click theSoftware 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 inthis 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 theWelcome to Android Studioscreen then select >Configure>Project Defaults>Project Structure>Android SDKand then input your JDK location, given by thejava_homeutility.

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

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. [笨木头Cocos2dx045]让输入框在Android上
  2. Android安全机制介绍
  3. 用U盘安装Android系统在PC x86平台上运行
  4. rdp文件和vnc软件
  5. androidのPULL方式解析XML
  6. android消息机制总结
  7. Android中触摸事件传递机制
  8. 杭州_大雲架構師_培訓課程
  9. Android串口通信
  10. Android防重签名和二次打包