
In a terminal window, enter the following: sudo apt update The default Raspbian repositories have a fully-updated and compatible version of OpenJDK.ġ. Raspberry Pi’s system architecture is ARM-based so many packages aren’t compatible.
It is recommended that you install all packages from the default Raspbian software repositories. Raspbian is based on Debian, so terminal commands to install Java will use the aptpackage manager.
LTS: Long-Term Support (major software versions intended for long-term use)īy default, Raspberry Pi uses the Raspbian operating system. JDK: Java Development Kit (for writing and running Java applications). JRE: Java Runtime Environment (for running Java applications). SE: Standard Edition (usually for Oracle Java). While browsing different Java versions, you may see different abbreviations: Oracle Java versions require an account to download, and most are not compatible with Raspberry Pi. At least it built in my case.Important: This guide will help you install the free, open-source OpenJDK version. You Android build should be done after that (apk or aab). If you get a warning about obsolete Android SDK, click on Update SDK button.ġ3. Come back to Unity Editor and try to build the project.ġ2. Do so if you see a warning about it in Unity Editorġ1. You may need to restart the PC to take these variables into effect. Add JAVA_HOME variables in both Users and System variables section. Copy the OpenJDK path from Preferences > External Tools.ġ0 Go to Windows Environment Variables. Locate your project in Unity Hub and click to load it in Unity Editor.ĩ. Expand it and select both sub-options SDK, NDK and OpenJDK.Ĩ. Then select this installation in the Hub and select Add Module. Add Unity Editor - 2020.3.20f1 release but DO NOT select Android module. Start Unity Hub - 2.4.5 as "Run as Administrator".Ĥ. This is the version which solved my issue.ģ. I have installed it first and problem has started from there. Disable any anti virus before installing Unity Hub or Unity Editor.
After running pillar to post and reading hundreds of posts on many forums, I was able to resolve the issue.ġ. I believe many people might be facing this issue.