简体   繁体   中英

Trouble when build android game from unity

I have created a 2D game and tried to build it on Android platform to an .apk file, but I got this message:

"Make sure that you are using at least jdk 6 (1.6). The latest can be obtained from the Oracle".

I have intalled the latest Android SDK and I'm using JDK 8 (1.8). Can anyone help?

You also need to add the path to the JDK to your PATH environment variable.

To check if this is true try to run javac from the console, if it complains about not knowing the command then you need to add the path to your environment.

If you are on a linux you can do something like this:

export PATH=$PATH;path_to_jdk

Note: this will change the path only for this session, if you want it to be permanent you need to change the content of your ~/.bashrc

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM