playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.43k stars 953 forks source link

Error building AAB with API 33 #3240

Open spiritwarri0r opened 1 year ago

spiritwarri0r commented 1 year ago

Describe the bug Error when try to build the game in AAB format for google playstore with target API 33. If I try to build it on 32 it works, only happens for API 33. I think it is because the dependencies are compiled with JAVA higher than 8, but Unity 2020.3 I have use JAVA 8 and for that can't process the dependencies.

To Reproduce Steps to reproduce the behavior:

  1. Use Unity 2020.3.27f1
  2. Install - GooglePlayGamesPlugin-0.11.01.unitypackage
  3. Install - com.google.play.core-1.8.1.unitypackage
  4. Install - com.google.play.review-1.8.1.unitypackage
  5. Select Target API 33
  6. Build AAB format

Expected behavior Is supposed to build the AAB file.

Observed behavior Only happens for API 33 in format AAB (I can normally build as APK)

Bug Report ` Execution failed for task ':launcher:minifyReleaseWithProguard'.

java.io.IOException: Can't read [C:\Program Files\Unity\2020.3.27f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-33\optional\android.car.jar] (Can't process class [android/car/Car$CarServiceLifecycleListener.class] (Unsupported version number [55.0] (maximum 54.0, Java 10))) `

Versions

Additional context For what I found on internet , I understand Unity works with JAVA 8 and more recent version 2022.2 has JAVA 11. So people who want to build Android games with target API 33 that is a MUST from google. they need to update their Unity version to 2022.2 There is no other way to build to 33 without updating ? I refuse to think that... because that will mean that all older LTS versions are uselsess to export for API 33 that will be a MUST in 5 months. So upgrading to 2022.2 version that is not LTS is not good choice.. also what about devs who are mid project who developed the game like 2 years with 2020 ? I attach also the link I posted on Unity forums.