"Android build failed (1)" on macOS

Hi everyone,

I am getting the following error when building for Android on macOS:

Jan 17 09:00:52.450 Excluding specified files from build: 
                       excluding: LaunchScreen.storyboardc
                       excluding: Icon.png
                       excluding: Icon-*dpi.png
                       excluding: Images.xcassets
                    Android build failed (1) after 1 seconds
Jan 17 09:00:52.895 ERROR: Build Failed: Error code: 1

I have JDK 21 installed, and also the latest version of Android Studio/SDK.

Any idea what is causing this?

FIXED

I just needed to install openJDK via the simulator.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.