Unable to find suitable jdk installaion

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

Unable to find suitable jdk installaion_第1张图片

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。报错解决!

Unable to find suitable jdk installaion_第2张图片





你可能感兴趣的:(android,unity)