Software⏱️ 2 min read📅 2026-05-31

How to Fix: BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 61 on Apple Arm

Flutter project error on Apple Silicon Mac

Quick Answer: The issue is caused by the unsupported class file major version 61. Try updating Flutter to the latest version or using a different build tool like Gradle.

The error you're encountering is due to the unsupported major version of the Java class file (61) on Apple Arm. This issue arises because Android Studio Canary 2020.3.1.22 uses a newer version of Java than what's supported by Flutter.

✅ Best Solutions to Fix It

Method 1: Update Java Version

  1. Step 1: Open the Terminal and run brew upgrade --force java to update Java.

Method 2: Use a Different SDK Version

  1. Step 1: Open the Flutter project in Android Studio and go to Settings >Build, Execution, Deployment >Compiler.

💡 Conclusion

By following these steps, you should be able to resolve the error and successfully run your Flutter app on Apple Silicon(ARM) Mac.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions