Search Issue Tracker

Active

Votes

0

Found in

2021.3.4f1

2022.1.0a1

2022.1.0b3

Issue ID

UUM-3680

Regression

No

[Linux] OpenJDK downloaded through Hub 3 beta 7 is is not sufficient to build Android on Ubuntu 18.04

--

-

Repro steps:
1. Install Android module with all the components
2. Create a new project
3. Open the Build Settings Window
4. Select the Android Built Target

Expected: No errors appear in the Console
Actual: Errors start spamming in the Console

Reproducible with: 2022.1.0a1, 2022.1.0b3

Notes:
- Reproduced this with UnityHub 3.0.0-beta.7

Comments (1)

  1. mgschwan

    Jun 07, 2022 17:11

    I am not sure if it is the same issue I had but it was not recognizing the OpenJDK I installed from UnityHub in 2021.3.3f1 even though it was installed in the right place.

    The problem was that none of the binaries in

    ~/Unity/Hub/Editor/2021.3.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/

    had the executable permission.

    So you have to make sure that all binaries are executable. And if you are lazy like me you will just make a

    find -exec chmod +x {} \;

    inside that folder. This will also fix the Android SDK binaries because those are the next ones you will run into once the OpenJDK is fixed.

    But please be aware that this will also make all other files executable which is not the cleanest thing to do

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.