Skip to content

Android builds fail with Unity < 2021.3.41 #223

@bdg-raini

Description

@bdg-raini

Describe the bug

After integrating the Branch Unity SDK Android builds fail for us with a Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'. error. This only happened after Branch integration so either the Branch Android SDK or a dependency requires JDK 11.

Versions of Unity older than 2021.3.41 only support JDK 8 (aka. JDK 1.8), 2021.3.41 was when JDK support was updated to JDK 11. So it seems like the Branch Unity SDK effectively has a minimum required Unity version of 2021.3.41, however this isn't documented anywhere on the Unity page.

When Branch Unity SDK 2.0.0 was released the latest Unity 2021.3 LTS version (2021.3.38) only supported JDK 8 so I have to assume Android builds weren't tested with Unity 2021 at all. Is there a minimum supported Unity version that Branch supports and is properly tested with? If so, what is it? We've sunk a couple days worth of developer time into troubleshooting Android & iOS build issues caused by the Branch Unity SDK (see #222) and I'd like to know if we can expect to run into more of them.

Steps to reproduce

  1. Attempt to build for Android with Unity 2021.3.38
  2. Observe failure

Expected behavior

Build should succeed, or minimum version requirement is properly communicated via documentation.

SDK Version

2.0.0

Unity Version

2021.3.38

Make and Model

N/A

OS

Windows 11

Additional Information/Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions