用unity 4.2.0f4 导出android 的apk包时,报错:


Error building Player: UnityException: Unable to find suitable jdk installaion Please make sure you have a suitable jdk installation. Android development requires at least JDK 6 (1.6). The latest JDK can be obtained from the Oracle
http://www.oracle.com/technetwork/java/javase/downloads/index.html

谷歌了一下解决办法,乱七八糟说什么都有的。说的最官方的,是unity4.3 的更新公告:

Android: Fixed for “Unable to find suitable jdk installation” on windows.

好吧,用了将近一个小时,下载并安装最新的 unity4.3.2f1,报错依旧。

--------------------------------------------------------------------------------------------


只好抱着试试的心态,把java的bin添加到系统的环境变量里。结果,错误解决了!

解决办法:

把java的bin添加到系统的环境变量里。

例如:D:\ptools\Java\jdk1.7.0_45\bin

之后,要重启一下unity。报错解决!




更多相关文章

  1. android ListView内数据的动态添加与删除
  2. MSDK接入 中的各种问题
  3. android 实时检测网络状态
  4. Android(安卓)scrollview嵌套listview 滑动事件冲突的解决方法
  5. 【Android】Error:(32, 2) error: #error ....support for the I
  6. android 模拟器中找不到程序
  7. android 添加,删除程序
  8. Android中给Activity添加返回键
  9. Android播放音乐方法

随机推荐

  1. Android(安卓)之 CheckBox 详解
  2. Android(安卓)文字链接 文字点击时的背景
  3. Android(安卓)后台保活,这里有你需要的所
  4. JSONArray的使用
  5. Android之ListView中的分割线和行高
  6. Android的CheckBox控件的点击效果布局文
  7. android自定义滚动条(ScrollBar)样式
  8. Android(安卓)ScrollView用法
  9. android 状态栏提醒 Notification 的使用
  10. 修改android studio 新建项目的build.gra