Xamarin build for iOS and Android is failing. Seems like the build is related to a the latest pro guard not being installed on your build servers
Environment:
Bitrise. Xamarin Archive step
Fails with the issue:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: error : Tool exited with code: 10. Output: Error: Can’t read [/Library/Frameworks/Xamarin.Android.framework/Versions/7.0.2-42/lib/xbuild-frameworks/MonoAndroid/v7.0/mono.android.jar] (Can’t process class [android/app/ActivityTracker.class] (Unsupported class version number [52.0] (maximum 51.0, Java 1.7)))
(One unfortunate complication with JDK 1.8 is that is not compatible with the outdated version of Proguard that is included in the Android SDK. Currently this will cause an error “Unsupported class version number [52.0]” when attempting to use the Proguard or Multidex features in Xamarin.Android. See 44187.)
As mentioned in this STO question, the workaround is to install manually the latest proguard version.
Please add a Script step before you Xamarin Archive step with followinf content input value:
@viktorbenei
Hi!
Sorry to dig this discussion up but we have the same issue with native android build recently.
After updating target API and compile SDK version from 29 to 30, release build fails with “(Unsupported class version number [53.0] (maximum 52.0, Java 1.8)))”
I’ve tried use the proguard install step to install proguard7.0.1 but didn’t work.
Build from local works fine once after I replaced old version of proguard with 7.0.1.