Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[M1] App won't run on Emulator #85904

Closed
Tejaswgupta opened this issue Jul 5, 2021 · 20 comments
Closed

[M1] App won't run on Emulator #85904

Tejaswgupta opened this issue Jul 5, 2021 · 20 comments
Labels
found in release: 2.2 Found to occur in 2.2 found in release: 2.4 Found to occur in 2.4 has reproducible steps The issue has been confirmed reproducible and is ready to work on P1 High-priority issues at the top of the work list platform-android Android applications specifically platform-host-arm Building on an ARM-based platform r: fixed Issue is closed as already fixed in a newer version t: gradle "flutter build" and "flutter run" on Android tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@Tejaswgupta
Copy link

Tejaswgupta commented Jul 5, 2021

Steps to Reproduce

  1. Install android studio arctic fox beta 5
  2. Azul openJDK 16.0.1+9
  3. gradle 7.1.1

Logs

Logs
Launching lib/main_dev.dart on sdk gphone arm64 in debug mode...

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file '/Users/tejasw/Desktop/recspot-mobile/android/settings.gradle' (/Users/tejasw/.gradle/caches/6.7.1/scripts/1s73qcb50lg0rbrzpvq7gi0ih).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 60

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 531ms
Exception: Gradle task assembleDevDebug failed with exit code 1
Exited (sigterm)




[✓] Flutter (Channel stable, 2.2.3, on macOS 12.0 21A5268h darwin-arm, locale en-IN)
    • Flutter version 2.2.3 at /Users/tejasw/dev/flutter
    • Framework revision f4abaa0735 (4 days ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/tejasw/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment Zulu16.30+19-CA (build 16.0.1+9)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode-beta.app/Contents/Developer
    • Xcode 13.0, Build version 13A5155e
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] Connected device (2 available)
    • sdk gphone arm64 (mobile) • emulator-5554 • android-arm64  • Android 11 (API 30) (emulator)
    • Chrome (web)              • chrome        • web-javascript • Google Chrome 91.0.4472.114

! Doctor found issues in 1 category.
@TahaTesser TahaTesser added the in triage Presently being triaged by the triage team label Jul 5, 2021
@TahaTesser
Copy link
Member

TahaTesser commented Jul 5, 2021

Hi @Tejaswgupta
Thanks for filing the issue, it seems to be an issue with your environment, you're using JAVA 16.
Please use support java version that matches your Android Studio's java bundle, which is currently Java 11
Check out this Stackoverflow thread for more info.

If the problem persists, can you please provide a complete reproducible minimal code sample, and complete flutter run --verbose logs running the minimal code sample?
Thank you

@TahaTesser TahaTesser added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 5, 2021
@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 5, 2021
@Tejaswgupta
Copy link
Author

Tejaswgupta commented Jul 5, 2021

@TahaTesser Java 11 won't run on M1 chip as far as I know. Only Java 16 from Azul supports M1 and same goes for Android Studio , only the latest previews(Arctic Fox) work natively for the M1.

The project I'm working with has a pretty large codebase, but I tried it with the default boilerplate code and the result is same.

flutter run -v
                   "udid" : "4A68B208-CD3A-4493-82D5-C5E85017B488",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-5-40mm",
                   "state" : "Shutdown",
                   "name" : "Apple Watch Series 5 - 40mm"
                 },
                 {
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/538356C1-03AE-43
                   74-B296-B0D484DFA253\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/538356C1-03AE-4374-B296-B0D484
                   DFA253",
                   "udid" : "538356C1-03AE-4374-B296-B0D484DFA253",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-5-44mm",
                   "state" : "Shutdown",
                   "name" : "Apple Watch Series 5 - 44mm"
                 },
                 {
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/39186257-E061-44
                   D3-BCDC-EC9F7F0A507F\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/39186257-E061-44D3-BCDC-EC9F7F
                   0A507F",
                   "udid" : "39186257-E061-44D3-BCDC-EC9F7F0A507F",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-6-40mm",
                   "state" : "Shutdown",
                   "name" : "Apple Watch Series 6 - 40mm"
                 },
                 {
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/610BFDE1-A1D4-4F
                   17-9756-1CA9664806BD\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/610BFDE1-A1D4-4F17-9756-1CA966
                   4806BD",
                   "udid" : "610BFDE1-A1D4-4F17-9756-1CA9664806BD",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-6-44mm",
                   "state" : "Shutdown",
                   "name" : "Apple Watch Series 6 - 44mm"
                 }
               ],
               "com.apple.CoreSimulator.SimRuntime.tvOS-14-5" : [
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/224681FC-2964-45
                   BC-8135-EAC59D7A8E76\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/224681FC-2964-45BC-8135-EAC59D
                   7A8E76",
                   "udid" : "224681FC-2964-45BC-8135-EAC59D7A8E76",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.Apple-TV-1080p",
                   "state" : "Shutdown",
                   "name" : "Apple TV"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/CE5551BC-A18B-48
                   DE-B321-74A40F0334DA\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/CE5551BC-A18B-48DE-B321-74A40F
                   0334DA",
                   "udid" : "CE5551BC-A18B-48DE-B321-74A40F0334DA",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-2nd-generation-4K",
                   "state" : "Shutdown",
                   "name" : "Apple TV 4K (2nd generation)"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/646A0AE8-48D8-48
                   7E-8EF1-D308D56ECF72\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/646A0AE8-48D8-487E-8EF1-D308D5
                   6ECF72",
                   "udid" : "646A0AE8-48D8-487E-8EF1-D308D56ECF72",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-2nd-generation-1080p",
                   "state" : "Shutdown",
                   "name" : "Apple TV 4K (at 1080p) (2nd generation)"
                 }
               ],
               "com.apple.CoreSimulator.SimRuntime.iOS-14-5" : [
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/A08EDA1F-6B7A-47
                   2E-AC92-F045589E45D3\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/A08EDA1F-6B7A-472E-AC92-F04558
                   9E45D3",
                   "udid" : "A08EDA1F-6B7A-472E-AC92-F045589E45D3",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8",
                   "state" : "Shutdown",
                   "name" : "iPhone 8"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/F19C0ACE-F406-45
                   11-B319-B976B267C405\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/F19C0ACE-F406-4511-B319-B976B2
                   67C405",
                   "udid" : "F19C0ACE-F406-4511-B319-B976B267C405",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.iPhone-8-Plus",
                   "state" : "Shutdown",
                   "name" : "iPhone 8 Plus"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/F7D9D6B3-CA04-4F
                   3A-8A65-FAC59F309A53\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/F7D9D6B3-CA04-4F3A-8A65-FAC59F
                   309A53",
                   "udid" : "F7D9D6B3-CA04-4F3A-8A65-FAC59F309A53",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11",
                   "state" : "Shutdown",
                   "name" : "iPhone 11"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/3183466D-6566-4A
                   77-BE43-249331417334\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/3183466D-6566-4A77-BE43-249331
                   417334",
                   "udid" : "3183466D-6566-4A77-BE43-249331417334",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro",
                   "state" : "Shutdown",
                   "name" : "iPhone 11 Pro"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/3DDA5324-2F1B-4C
                   7A-A8A3-4D35CF63BEA9\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/3DDA5324-2F1B-4C7A-A8A3-4D35CF
                   63BEA9",
                   "udid" : "3DDA5324-2F1B-4C7A-A8A3-4D35CF63BEA9",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro-Max",
                   "state" : "Shutdown",
                   "name" : "iPhone 11 Pro Max"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/39B393D9-95D5-43
                   04-949E-DBB36FC787F8\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/39B393D9-95D5-4304-949E-DBB36F
                   C787F8",
                   "udid" : "39B393D9-95D5-4304-949E-DBB36FC787F8",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.iPhone-SE--2nd-generation-",
                   "state" : "Shutdown",
                   "name" : "iPhone SE (2nd generation)"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/74467726-65D9-4B
                   94-B8B0-50BDC0B956BA\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/74467726-65D9-4B94-B8B0-50BDC0
                   B956BA",
                   "udid" : "74467726-65D9-4B94-B8B0-50BDC0B956BA",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.iPhone-12-mini",
                   "state" : "Shutdown",
                   "name" : "iPhone 12 mini"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/35A5796B-155D-45
                   82-BC65-30F847AB55EB\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/35A5796B-155D-4582-BC65-30F847
                   AB55EB",
                   "udid" : "35A5796B-155D-4582-BC65-30F847AB55EB",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12",
                   "state" : "Shutdown",
                   "name" : "iPhone 12"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/E0E48F65-6C77-48
                   4E-94F0-36008890B47F\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/E0E48F65-6C77-484E-94F0-360088
                   90B47F",
                   "udid" : "E0E48F65-6C77-484E-94F0-36008890B47F",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.iPhone-12-Pro",
                   "state" : "Shutdown",
                   "name" : "iPhone 12 Pro"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/90B2DFAB-0964-46
                   04-A126-610EE7B0C3D2\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/90B2DFAB-0964-4604-A126-610EE7
                   B0C3D2",
                   "udid" : "90B2DFAB-0964-4604-A126-610EE7B0C3D2",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.iPhone-12-Pro-Max",
                   "state" : "Shutdown",
                   "name" : "iPhone 12 Pro Max"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/6575C316-D773-45
                   5A-B086-1C4E0139173B\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/6575C316-D773-455A-B086-1C4E01
                   39173B",
                   "udid" : "6575C316-D773-455A-B086-1C4E0139173B",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.iPod-touch--7th-generation-",
                   "state" : "Shutdown",
                   "name" : "iPod touch (7th generation)"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/6AA492BB-E966-45
                   FA-B026-E5D78D9C59C3\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/6AA492BB-E966-45FA-B026-E5D78D
                   9C59C3",
                   "udid" : "6AA492BB-E966-45FA-B026-E5D78D9C59C3",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-",
                   "state" : "Shutdown",
                   "name" : "iPad Pro (9.7-inch)"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/E1A747C0-853E-45
                   5B-B9D5-0BA49F3A01EE\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/E1A747C0-853E-455B-B9D5-0BA49F
                   3A01EE",
                   "udid" : "E1A747C0-853E-455B-B9D5-0BA49F3A01EE",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.iPad--8th-generation-",
                   "state" : "Shutdown",
                   "name" : "iPad (8th generation)"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/08BC097C-2CD6-45
                   CA-B677-012B4FA660EE\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/08BC097C-2CD6-45CA-B677-012B4F
                   A660EE",
                   "udid" : "08BC097C-2CD6-45CA-B677-012B4FA660EE",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.iPad-Air--4th-generation-",
                   "state" : "Shutdown",
                   "name" : "iPad Air (4th generation)"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/BA02E639-A1C6-4C
                   62-A8F9-AF793DB2C097\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/BA02E639-A1C6-4C62-A8F9-AF793D
                   B2C097",
                   "udid" : "BA02E639-A1C6-4C62-A8F9-AF793DB2C097",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.iPad-Pro-11-inch-3rd-generation",
                   "state" : "Shutdown",
                   "name" : "iPad Pro (11-inch) (3rd generation)"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/3CFBCA0E-17AB-49
                   C2-A1C5-327C03B3E663\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/3CFBCA0E-17AB-49C2-A1C5-327C03
                   B3E663",
                   "udid" : "3CFBCA0E-17AB-49C2-A1C5-327C03B3E663",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.iPad-Pro-12-9-inch-5th-generation",
                   "state" : "Shutdown",
                   "name" : "iPad Pro (12.9-inch) (5th generation)"
                 }
               ],
               "com.apple.CoreSimulator.SimRuntime.watchOS-7-4" : [
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/5573136E-58D9-44
                   1E-8FFA-C1912754A93E\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/5573136E-58D9-441E-8FFA-C19127
                   54A93E",
                   "udid" : "5573136E-58D9-441E-8FFA-C1912754A93E",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-5-40mm",
                   "state" : "Shutdown",
                   "name" : "Apple Watch Series 5 - 40mm"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/9553524A-9767-41
                   3E-96CC-C2D5D17EC355\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/9553524A-9767-413E-96CC-C2D5D1
                   7EC355",
                   "udid" : "9553524A-9767-413E-96CC-C2D5D17EC355",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-5-44mm",
                   "state" : "Shutdown",
                   "name" : "Apple Watch Series 5 - 44mm"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/41AC43ED-E1AC-4B
                   22-8581-3E584BDA1663\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/41AC43ED-E1AC-4B22-8581-3E584B
                   DA1663",
                   "udid" : "41AC43ED-E1AC-4B22-8581-3E584BDA1663",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-6-40mm",
                   "state" : "Shutdown",
                   "name" : "Apple Watch Series 6 - 40mm"
                 },
                 {
                   "availabilityError" : "runtime profile not found",
                   "dataPath" :
                   "\/Users\/tejasw\/Library\/Developer\/CoreSimulator\/Devices\/259FA038-2C30-4B
                   85-AAD8-AE6134C9C7A9\/data",
                   "logPath" :
                   "\/Users\/tejasw\/Library\/Logs\/CoreSimulator\/259FA038-2C30-4B85-AAD8-AE6134
                   C9C7A9",
                   "udid" : "259FA038-2C30-4B85-AAD8-AE6134C9C7A9",
                   "isAvailable" : false,
                   "deviceTypeIdentifier" :
                   "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-6-44mm",
                   "state" : "Shutdown",
                   "name" : "Apple Watch Series 6 - 44mm"
                 }
               ]
             }
           }
[+2501 ms] [
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19A5281d)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone12,5",
                        "identifier" : "654AB1FA-EBC5-4609-B80C-B8D4A2DD10B1",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.iphone-11-pro-max-1",
                        "modelName" : "iPhone 11 Pro Max",
                        "name" : "iPhone 11 Pro Max"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "8.0 (19R5286d)",
                        "available" : true,
                        "platform" : "com.apple.platform.watchsimulator",
                        "modelCode" : "Watch5,4",
                        "identifier" : "538356C1-03AE-4374-B296-B0D484DFA253",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.watch-series5-1",
                        "modelName" : "Apple Watch Series 5 - 44mm",
                        "name" : "Apple Watch Series 5 - 44mm"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19A5281d)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone13,2",
                        "identifier" : "5E199F42-44FB-4B64-8783-8237DCCFA382",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.iphone-12-1",
                        "modelName" : "iPhone 12",
                        "name" : "iPhone 12"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19A5281d)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone13,3",
                        "identifier" : "35B1C555-D85A-4D4B-8D4C-6A36FF05AC12",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.iphone-12-pro-1",
                        "modelName" : "iPhone 12 Pro",
                        "name" : "iPhone 12 Pro"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19A5281d)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone12,8",
                        "identifier" : "23EF62E3-6900-464F-9F66-C81AF4C37D3B",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.iphone-se-1",
                        "modelName" : "iPhone SE (2nd generation)",
                        "name" : "iPhone SE (2nd generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19A5281d)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPod9,1",
                        "identifier" : "B5D16F15-5B9A-4FD1-ADCC-946EB537BB94",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.ipod-touch-7-2",
                        "modelName" : "iPod touch (7th generation)",
                        "name" : "iPod touch (7th generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19J5288e)",
                        "available" : true,
                        "platform" : "com.apple.platform.appletvsimulator",
                        "modelCode" : "AppleTV11,1",
                        "identifier" : "8CF339FD-FF07-4C28-9AA3-12BEC1E3A5F8",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.apple-tv-4k-2nd",
                        "modelName" : "Apple TV 4K (2nd generation)",
                        "name" : "Apple TV 4K (2nd generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19J5288e)",
                        "available" : true,
                        "platform" : "com.apple.platform.appletvsimulator",
                        "modelCode" : "AppleTV5,3",
                        "identifier" : "221051D8-4153-4200-AC8F-11D2888D41EA",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.apple-tv-4",
                        "modelName" : "Apple TV",
                        "name" : "Apple TV"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "8.0 (19R5286d)",
                        "available" : true,
                        "platform" : "com.apple.platform.watchsimulator",
                        "modelCode" : "Watch5,3",
                        "identifier" : "4A68B208-CD3A-4493-82D5-C5E85017B488",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.watch-series5-1",
                        "modelName" : "Apple Watch Series 5 - 40mm",
                        "name" : "Apple Watch Series 5 - 40mm"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19A5281d)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone10,4",
                        "identifier" : "519A4864-431D-4D49-BD63-80A2420C1E95",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.iphone-8-2",
                        "modelName" : "iPhone 8",
                        "name" : "iPhone 8"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19A5281d)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad6,4",
                        "identifier" : "332A61FF-CB40-4E79-B0EC-44DBBFBBB876",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.ipad-pro-9point7-a1674-b9b7ba",
                        "modelName" : "iPad Pro (9.7-inch)",
                        "name" : "iPad Pro (9.7-inch)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "8.0 (19R5286d)",
                        "available" : true,
                        "platform" : "com.apple.platform.watchsimulator",
                        "modelCode" : "Watch6,1",
                        "identifier" : "39186257-E061-44D3-BCDC-EC9F7F0A507F",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.watch-series6-1",
                        "modelName" : "Apple Watch Series 6 - 40mm",
                        "name" : "Apple Watch Series 6 - 40mm"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19A5281d)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone12,3",
                        "identifier" : "8AE8DD64-973B-4666-BD57-236BC981FDD3",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.iphone-11-pro-1",
                        "modelName" : "iPhone 11 Pro",
                        "name" : "iPhone 11 Pro"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19A5281d)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad13,2",
                        "identifier" : "287233A3-93BF-4AA6-A71E-2FCB26DA1CD8",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.ipad-air4-1",
                        "modelName" : "iPad Air (4th generation)",
                        "name" : "iPad Air (4th generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19A5281d)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad13,10",
                        "identifier" : "B9610E4B-E371-4B55-B284-37F39E75ACC5",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.ipad-pro-12point9-5th-1",
                        "modelName" : "iPad Pro (12.9-inch) (5th generation)",
                        "name" : "iPad Pro (12.9-inch) (5th generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19A5281d)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone13,1",
                        "identifier" : "0BBDC6A2-5FE5-4685-8523-9C3F13837707",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.iphone-12-mini-1",
                        "modelName" : "iPhone 12 mini",
                        "name" : "iPhone 12 mini"
                      },
                      {
                        "simulator" : false,
                        "operatingSystemVersion" : "12.0 (21A5268h)",
                        "interface" : "usb",
                        "available" : true,
                        "platform" : "com.apple.platform.macosx",
                        "modelCode" : "MacBookPro17,1",
                        "identifier" : "00008103-001E19923AEA001E",
                        "architecture" : "arm64e",
                        "modelUTI" : "com.apple.macbookpro-13-retina-touchid-late-2020",
                        "modelName" : "MacBook Pro",
                        "name" : "My Mac"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19A5281d)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone13,4",
                        "identifier" : "4EF34ACE-C668-417B-A067-12F6E638000E",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.iphone-12-pro-max-1",
                        "modelName" : "iPhone 12 Pro Max",
                        "name" : "iPhone 12 Pro Max"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19A5281d)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad13,5",
                        "identifier" : "36FBEDEE-5110-4AB0-A7C4-7BB317A00E5D",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.ipad-pro-11-3rd-1",
                        "modelName" : "iPad Pro (11-inch) (3rd generation)",
                        "name" : "iPad Pro (11-inch) (3rd generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "8.0 (19R5286d)",
                        "available" : true,
                        "platform" : "com.apple.platform.watchsimulator",
                        "modelCode" : "Watch6,2",
                        "identifier" : "610BFDE1-A1D4-4F17-9756-1CA9664806BD",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.watch-series6-1",
                        "modelName" : "Apple Watch Series 6 - 44mm",
                        "name" : "Apple Watch Series 6 - 44mm"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19A5281d)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone12,1",
                        "identifier" : "2C0B6E31-2C6E-46D0-95B9-9D5612CF9321",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.iphone-11-1",
                        "modelName" : "iPhone 11",
                        "name" : "iPhone 11"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19A5281d)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone10,5",
                        "identifier" : "306BD745-B2CC-4C5E-B8C3-E76BA86F172E",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.iphone-8-plus-2",
                        "modelName" : "iPhone 8 Plus",
                        "name" : "iPhone 8 Plus"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "15.0 (19J5288e)",
                        "available" : true,
                        "platform" : "com.apple.platform.appletvsimulator",
                        "modelCode" : "AppleTV11,1",
                        "identifier" : "24F05F49-8B92-446A-BD3D-240B35E4B18D",
                        "architecture" : "arm64",
                        "modelUTI" : "com.apple.apple-tv-4k-2nd",
                        "modelName" : "Apple TV 4K (at 1080p) (2nd generation)",
                        "name" : "Apple TV 4K (at 1080p) (2nd generation)"
                      }
                    ]

                    objc[81422]: Class AMSupportURLConnectionDelegate is implemented in both
                    /usr/lib/libauthinstall.dylib (0x1f334f5a8) and
                    /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versio
                    ns/A/MobileDevice (0x10353c2c8). One of the two will be used. Which one is
                    undefined.
                    objc[81422]: Class AMSupportURLSession is implemented in both
                    /usr/lib/libauthinstall.dylib (0x1f334f5f8) and
                    /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versio
                    ns/A/MobileDevice (0x10353c318). One of the two will be used. Which one is
                    undefined.
                    2021-07-05 21:11:38.161 xcdevice[81422:613043] [MT] DVTPlugInManager:
                    Required plug-in compatibility UUID 42E1F17B-27B3-4DE8-92A8-DC76BA4F5921 for
                    DVTCoreGlyphs.framework (com.apple.dt.DVTCoreGlyphs) not present
[  +24 ms] /Users/tejasw/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop
[  +61 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +113 ms] Skipping pub get: version match.
[  +36 ms] Found plugin connectivity_plus at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-1.0.4/
[   +6 ms] Found plugin connectivity_plus_linux at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_linux-1.0.3/
[   +2 ms] Found plugin connectivity_plus_macos at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_macos-1.0.2/
[   +3 ms] Found plugin connectivity_plus_web at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_web-1.0.2/
[   +2 ms] Found plugin connectivity_plus_windows at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_windows-1.0.2/
[   +2 ms] Found plugin contacts_service at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/contacts_service-0.4.6/
[  +13 ms] Found plugin firebase_analytics at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-8.1.2/
[   +2 ms] Found plugin firebase_analytics_web at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics_web-0.3.0+1/
[   +1 ms] Found plugin firebase_core at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.3.0/
[   +2 ms] Found plugin firebase_core_web at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-1.1.0/
[   +9 ms] Found plugin flutter_inappwebview at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/
[   +1 ms] Found plugin flutter_keyboard_visibility at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-5.0.2/
[   +2 ms] Found plugin flutter_keyboard_visibility_web at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility_web-2.0.
0/
[   +1 ms] Found plugin flutter_libphonenumber at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_libphonenumber-1.1.0/
[   +2 ms] Found plugin flutter_plugin_android_lifecycle at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0
.11/
[   +3 ms] Found plugin flutter_statusbar_manager at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_statusbar_manager-2.0.0/
[   +3 ms] Found plugin fluttertoast at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-8.0.7/
[   +2 ms] Found plugin geocoding at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.0/
[   +3 ms] Found plugin geolocator at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-7.2.0+1/
[   +3 ms] Found plugin geolocator_web at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_web-2.0.3/
[  +12 ms] Found plugin image_picker at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.5+3/
[   +1 ms] Found plugin import_js_library at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/import_js_library-1.0.2/
[   +4 ms] Found plugin libphonenumber at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/libphonenumber-1.0.2/
[   +8 ms] Found plugin path_provider at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.2/
[   +1 ms] Found plugin path_provider_linux at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.0.0/
[   +1 ms] Found plugin path_provider_macos at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.0/
[   +1 ms] Found plugin path_provider_windows at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.1/
[   +1 ms] Found plugin permission_handler at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-8.1.2/
[   +8 ms] Found plugin share at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/share-2.0.4/
[   +1 ms] Found plugin shared_preferences at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.6/
[        ] Found plugin shared_preferences_linux at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.0.0/
[        ] Found plugin shared_preferences_macos at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.0/
[   +1 ms] Found plugin shared_preferences_web at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.0/
[   +2 ms] Found plugin shared_preferences_windows at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.0.0/
[   +2 ms] Found plugin sqflite at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+3/
[   +6 ms] Found plugin uni_links at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/uni_links-0.4.0/
[   +1 ms] Found plugin url_launcher at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.9/
[        ] Found plugin url_launcher_linux at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-2.0.0/
[        ] Found plugin url_launcher_macos at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-2.0.0/
[   +1 ms] Found plugin url_launcher_web at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.1/
[        ] Found plugin url_launcher_windows at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-2.0.0/
[   +2 ms] Found plugin wakelock at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.1+1/
[   +1 ms] Found plugin wakelock_web at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock_web-0.1.0+3/
[ +110 ms] Found plugin connectivity_plus at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-1.0.4/
[   +3 ms] Found plugin connectivity_plus_linux at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_linux-1.0.3/
[        ] Found plugin connectivity_plus_macos at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_macos-1.0.2/
[   +1 ms] Found plugin connectivity_plus_web at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_web-1.0.2/
[        ] Found plugin connectivity_plus_windows at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_windows-1.0.2/
[   +2 ms] Found plugin contacts_service at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/contacts_service-0.4.6/
[   +3 ms] Found plugin firebase_analytics at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-8.1.2/
[        ] Found plugin firebase_analytics_web at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics_web-0.3.0+1/
[        ] Found plugin firebase_core at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.3.0/
[        ] Found plugin firebase_core_web at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-1.1.0/
[   +1 ms] Found plugin flutter_inappwebview at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/
[        ] Found plugin flutter_keyboard_visibility at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-5.0.2/
[   +1 ms] Found plugin flutter_keyboard_visibility_web at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility_web-2.0.
0/
[        ] Found plugin flutter_libphonenumber at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_libphonenumber-1.1.0/
[        ] Found plugin flutter_plugin_android_lifecycle at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0
.11/
[   +1 ms] Found plugin flutter_statusbar_manager at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_statusbar_manager-2.0.0/
[        ] Found plugin fluttertoast at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-8.0.7/
[        ] Found plugin geocoding at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.0/
[        ] Found plugin geolocator at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-7.2.0+1/
[        ] Found plugin geolocator_web at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_web-2.0.3/
[   +6 ms] Found plugin image_picker at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.5+3/
[   +1 ms] Found plugin import_js_library at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/import_js_library-1.0.2/
[   +2 ms] Found plugin libphonenumber at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/libphonenumber-1.0.2/
[   +2 ms] Found plugin path_provider at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.2/
[        ] Found plugin path_provider_linux at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.0.0/
[        ] Found plugin path_provider_macos at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.0/
[        ] Found plugin path_provider_windows at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.1/
[        ] Found plugin permission_handler at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-8.1.2/
[   +2 ms] Found plugin share at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/share-2.0.4/
[        ] Found plugin shared_preferences at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.6/
[        ] Found plugin shared_preferences_linux at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.0.0/
[        ] Found plugin shared_preferences_macos at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.0/
[        ] Found plugin shared_preferences_web at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.0/
[   +1 ms] Found plugin shared_preferences_windows at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.0.0/
[   +1 ms] Found plugin sqflite at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+3/
[   +3 ms] Found plugin uni_links at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/uni_links-0.4.0/
[   +1 ms] Found plugin url_launcher at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.9/
[        ] Found plugin url_launcher_linux at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-2.0.0/
[        ] Found plugin url_launcher_macos at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-2.0.0/
[        ] Found plugin url_launcher_web at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.1/
[        ] Found plugin url_launcher_windows at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-2.0.0/
[        ] Found plugin wakelock at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.1+1/
[        ] Found plugin wakelock_web at
/Users/tejasw/dev/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock_web-0.1.0+3/
[  +19 ms] Generating
/Users/tejasw/Desktop/recspot-mobile/android/app/src/main/java/io/flutter/plugins/GeneratedPlugin
Registrant.java
[  +94 ms] ro.hardware = ranchu
[  +29 ms] Using hardware rendering with device sdk gphone arm64. If you notice graphics
artifacts, consider
           enabling software rendering with "--enable-software-rendering".
[  +32 ms] Initializing file store
[  +13 ms] Skipping target: gen_localizations
[   +6 ms] complete
[   +5 ms] Launching lib/main_dev.dart on sdk gphone arm64 in debug mode...
[   +6 ms] /Users/tejasw/dev/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/Users/tejasw/dev/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot
--sdk-root /Users/tejasw/dev/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/
--incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata
-DFLUTTER_WEB_AUTO_DETECT=true --output-dill
/var/folders/6d/wz8pwt2j72g06kjnc6y3gfgc0000gn/T/flutter_tools.e4x4dp/flutter_tool.qTgoQ7/app.dil
l --packages /Users/tejasw/Desktop/recspot-mobile/.dart_tool/package_config.json
-Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation
--filesystem-scheme org-dartlang-root --initialize-from-dill
build/3c113a45063dc6628e68a4111abcacad.cache.dill.track.dill
--enable-experiment=alternative-invalidation-strategy
[  +19 ms] executing: /Users/tejasw/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell
-x logcat -v time -t 1
[  +28 ms] <- compile package:recspot/main_dev.dart
[  +45 ms] --------- beginning of main
           07-05 21:11:40.574 I/MicroDetectionWorker( 2673): #onError(false)
[  +27 ms] executing: /Users/tejasw/Library/Android/sdk/platform-tools/adb version
[  +26 ms] Android Debug Bridge version 1.0.41
           Version 31.0.2-7242960
           Installed as /Users/tejasw/Library/Android/sdk/platform-tools/adb
[   +5 ms] executing: /Users/tejasw/Library/Android/sdk/platform-tools/adb start-server
[  +25 ms] Building APK
[  +24 ms] Running Gradle task 'assembleDevDebug'...
[   +6 ms] Using gradle from /Users/tejasw/Desktop/recspot-mobile/android/gradlew.
[  +36 ms] executing: /usr/bin/plutil -convert json -o - /Applications/Android Studio
Preview.app/Contents/Info.plist
[  +22 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Applications/Android Studio
Preview.app/Contents/Info.plist
[        ] {"CFBundleName":"Android
Studio","JVMOptions":{"ClassPath":"$APP_PACKAGE\/Contents\/lib\/bootstrap.jar:$APP_PACKAGE\/Conte
nts\/lib\/extensions.jar:$APP_PACKAGE\/Contents\/lib\/util.jar:$APP_PACKAGE\/Contents\/lib\/jdom.
jar:$APP_PACKAGE\/Contents\/lib\/log4j.jar:$APP_PACKAGE\/Contents\/lib\/jna.jar","JVMVersion":"1.
8*,1.8+","MainClass":"com.intellij.idea.Main","Properties":{"idea.paths.selector":"AndroidStudioP
review2020.3","idea.executable":"studio","idea.platform.prefix":"AndroidStudio","idea.vendor.name
":"Google","idea.home.path":"$APP_PACKAGE\/Contents"}},"NSDesktopFolderUsageDescription":"An
application in Android Studio requests access to the user's Desktop
folder.","LSArchitecturePriority":["x86_64"],"CFBundleVersion":"AI-203.7717.56.2031.7479365","CFB
undleDevelopmentRegion":"English","NSCameraUsageDescription":"An application in Android Studio
requests access to the device's camera.","CFBundleDocumentTypes":[{"CFBundleTypeName":"Android
Studio Project
File","CFBundleTypeExtensions":["ipr"],"CFBundleTypeRole":"Editor","CFBundleTypeIconFile":"studio
.icns"},{"CFBundleTypeName":"All
documents","CFBundleTypeExtensions":["*"],"CFBundleTypeOSTypes":["****"],"CFBundleTypeRole":"Edit
or","LSTypeIsPackage":false}],"NSSupportsAutomaticGraphicsSwitching":true,"CFBundlePackageType":"
APPL","CFBundleIconFile":"studio.icns","NSHighResolutionCapable":true,"CFBundleShortVersionString
":"EAP AI-203.7717.56.2031.7479365","NSMicrophoneUsageDescription":"An application in Android
Studio requests access to the device's
microphone.","CFBundleInfoDictionaryVersion":"6.0","CFBundleExecutable":"studio","NSLocationUsage
Description":"An application in Android Studio requests access to the user's location
information.","LSRequiresNativeExecution":"YES","CFBundleURLTypes":[{"CFBundleTypeRole":"Editor",
"CFBundleURLName":"Stacktrace","CFBundleURLSchemes":["idea"]}],"CFBundleIdentifier":"com.google.a
ndroid.studio-EAP","LSApplicationCategoryType":"public.app-category.developer-tools","CFBundleSig
nature":"????","LSMinimumSystemVersion":"10.8","NSDocumentsFolderUsageDescription":"An
application in Android Studio requests access to the user's Documents
folder.","NSDownloadsFolderUsageDescription":"An application in Android Studio requests access to
the user's Downloads folder.","NSNetworkVolumesUsageDescription":"An application in Android
Studio requests access to files on a network volume.","CFBundleGetInfoString":"Android Studio EAP
AI-203.7717.56.2031.7479365, build AI-203.7717.56.2031.7479365. Copyright JetBrains s.r.o., (c)
2000-2021","NSRemovableVolumesUsageDescription":"An application in Android Studio requests access
to files on a removable volume."}
[   +7 ms] executing: [/Users/tejasw/Desktop/recspot-mobile/android/]
/Users/tejasw/Desktop/recspot-mobile/android/gradlew -Pverbose=true
-Ptarget-platform=android-arm64 -Ptarget=/Users/tejasw/Desktop/recspot-mobile/lib/main_dev.dart
-Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== -Pdart-obfuscation=false
-Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root
assembleDevDebug
[ +439 ms] Welcome to Gradle 6.7.1!
[        ] Here are the highlights of this release:
[        ]  - File system watching is ready for production use
[        ]  - Declare the version of Java your build requires
[        ]  - Java 15 support
[        ] For more details see https://docs.gradle.org/6.7.1/release-notes.html
[  +70 ms] FAILURE: Build failed with an exception.
[   +3 ms] * What went wrong:
[   +1 ms] Could not open settings generic class cache for settings file
'/Users/tejasw/Desktop/recspot-mobile/android/settings.gradle'
(/Users/tejasw/.gradle/caches/6.7.1/scripts/1s73qcb50lg0rbrzpvq7gi0ih).
[        ] > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_'
Unsupported class file major version 60
[        ] * Try:
[        ] Run with --stacktrace option to get the stack trace. Run with --info or --debug option
to get more log output. Run with --scan to get full insights.
[        ] * Get more help at https://help.gradle.org
[        ] BUILD FAILED in 386ms
[ +390 ms] Running Gradle task 'assembleDevDebug'... (completed in 964ms)
[+9323 ms] Exception: Gradle task assembleDevDebug failed with exit code 1
[   +4 ms] "flutter run" took 14,120ms.
[   +9 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:663:9)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure>
           (package:flutter_tools/src/runner/flutter_command.dart:1043:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure>
(package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:196:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure>
           (package:flutter_tools/src/runner/flutter_command_runner.dart:284:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure>
(package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand
           (package:flutter_tools/src/runner/flutter_command_runner.dart:232:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure>
(package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure>
(package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:91:3)
           <asynchronous suspension>
           
           
[ +119 ms] ensureAnalyticsSent: 115ms
[   +2 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1

@maheshmnj
Copy link
Member

maheshmnj commented Jul 7, 2021

Hi @Tejaswgupta,
Heres what I did to reproduce this issue
I have installed

  • Android studio arctic fox beta 5
  • Installed the Azul Zulu Open Jdk 16.0.1+9 manually by downloading the zip from here (The dmg did not work)
    and moved it to
/Library/Java/JavaVirtualMachines/
  • added the JAVA_HOME global variable to .zshrc which points to
/Users/mahesh/Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home

so when I echo the JAVA_HOME path in terminal

mahesh@Maheshs-Air-M1 ~ % echo $JAVA_HOME
/Users/mahesh/Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home
mahesh@Maheshs-Air-M1 ~ %    

Also when I check for java version I see the Zulu16.30+19

mahesh@Maheshs-Air-M1 ~ % java -version
openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment Zulu16.30+19-CA (build 16.0.1+9)
OpenJDK 64-Bit Server VM Zulu16.30+19-CA (build 16.0.1+9, mixed mode)
mahesh@Maheshs-Air-M1 ~ % 

So I believe the azul jdk is properly set

And in one of the sample project I upgraded the gradle to 7.1.1 version by adding this in gradle.wrapper.properties

distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-all.zip

I have also added the Azul Open Jdk path in Arctic Fox, and I was able to run the flutter sample app .

Let me know if you think any of this step is wrong

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-arm, locale en-IN)
    • Flutter version 2.2.3 at /Users/mahesh/Documents/flutter
    • Framework revision f4abaa0735 (5 days ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2021.1.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 57.0.5
    • Dart plugin version 211.7233

[✓] VS Code (version 1.57.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.24.0

[✓] Connected device (3 available)
    • sdk gphone arm64 (mobile) • emulator-5554 • android-arm64  • Android 11 (API 30) (emulator)
    • macOS (desktop)           • macos         • darwin-arm64   • macOS 11.4 20F71 darwin-arm
    • Chrome (web)              • chrome        • web-javascript • Google Chrome 91.0.4472.114

! Doctor found issues in 1 category.

@maheshmnj maheshmnj added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 7, 2021
@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 7, 2021
@TahaTesser TahaTesser added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 7, 2021
@Tejaswgupta
Copy link
Author

@maheshmnj All the steps are correct, i just installed Gradle systemwide with brew and also added
export PATH="$PATH:/usr/bin/java" to zshrc.

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 7, 2021
@maheshmnj
Copy link
Member

okay let me try that and the export path that you are referring to should be this Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home/bin/java right?

@maheshmnj maheshmnj added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 7, 2021
@Tejaswgupta
Copy link
Author

Tejaswgupta commented Jul 7, 2021

There should be these two in the ~/.zshrc
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH="$PATH:/usr/bin/java"

I also tried using JDK 11 from azul but still the same result.

I also noticed that in your case android studio is using its embedded jdk and not the one from azul
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
whereas in my logs its using azul jdk
• Java binary at: /Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment Zulu16.30+19-CA (build 16.0.1+9)

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 7, 2021
@maheshmnj
Copy link
Member

I also noticed that in your case android studio is using its embedded jdk and not the one from azul
Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK

Actually, I have two android studio's installed the Android Studio Preview (arctic fox) version is not able to detect the Azul JDK and the other is a stable version of Android Studio which is using the open JDK

@maheshmnj
Copy link
Member

are you able to run the app with the real android device?

@maheshmnj maheshmnj added waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds and removed waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Jul 8, 2021
@maheshmnj
Copy link
Member

maheshmnj commented Jul 8, 2021

Finally, I was able to reproduce the issue on the latest stable and the master channel, I uninstalled my stable android studio and reinstalled arctic fox Android Preview, which uses Azul OpenJDK 16.0.1+9., With this JDK running a flutter counter app gives this error.

Error logs
Launching lib/main.dart on sdk gphone arm64 in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file '/Users/mahesh/Desktop/flutter_application_new/android/settings.gradle' (/Users/mahesh/.gradle/caches/6.7/scripts/f0emg6u6oecmxqzgk5g9nn4ui).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 60

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 757ms

Heres my flutter doctor output which mentions the azul jdk being used and "Unable to find bundled Java version" issue in the flutter doctor can be ignored thats probably because the command line tool does not recognize the new Android Studio as mentioned here #81909 (comment)

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-arm, locale en-IN)
    • Flutter version 2.2.3 at /Users/mahesh/Documents/flutter
    • Framework revision f4abaa0735 (7 days ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Users/mahesh/Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment Zulu16.30+19-CA (build 16.0.1+9)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] IntelliJ IDEA Community Edition (version 2021.1.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 57.0.5
    • Dart plugin version 211.7233

[✓] VS Code (version 1.57.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.24.0

[✓] Connected device (4 available)
    • Redmi K20 Pro (mobile)    • d9dac45d      • android-arm64  • Android 10 (API 29)
    • sdk gphone arm64 (mobile) • emulator-5554 • android-arm64  • Android 11 (API 30) (emulator)
    • macOS (desktop)           • macos         • darwin-arm64   • macOS 11.4 20F71 darwin-arm
    • Chrome (web)              • chrome        • web-javascript • Google Chrome 91.0.4472.114

! Doctor found issues in 1 category.
✓] Flutter (Channel master, 2.4.0-1.0.pre.78, on macOS 11.4 20F71 darwin-arm, locale en-IN)
    • Flutter version 2.4.0-1.0.pre.78 at /Users/mahesh/Documents/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761d568421 (3 days ago), 2021-07-05 05:21:03 -0400
    • Engine revision 37e3922ae8
    • Dart version 2.14.0 (build 2.14.0-276.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Users/mahesh/Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment Zulu16.30+19-CA (build 16.0.1+9)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] IntelliJ IDEA Community Edition (version 2021.1.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 57.0.5
    • Dart plugin version 211.7233

[✓] VS Code (version 1.57.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.24.0

[✓] Connected device (3 available)
    • sdk gphone arm64 (mobile) • emulator-5554 • android-arm64  • Android 11 (API 30) (emulator)
    • macOS (desktop)           • macos         • darwin-arm64   • macOS 11.4 20F71 darwin-arm
    • Chrome (web)              • chrome        • web-javascript • Google Chrome 91.0.4472.114

! Doctor found issues in 1 category.

@maheshmnj maheshmnj added found in release: 2.2 Found to occur in 2.2 found in release: 2.4 Found to occur in 2.4 has reproducible steps The issue has been confirmed reproducible and is ready to work on platform-android Android applications specifically t: gradle "flutter build" and "flutter run" on Android platform-host-arm Building on an ARM-based platform tool Affects the "flutter" command-line tool. See also t: labels. and removed in triage Presently being triaged by the triage team labels Jul 8, 2021
@Tejaswgupta
Copy link
Author

@maheshmnj I reinstalled arctic fox, set JDK 11 at JAVA_HOME and android studio. Was able to run the counter app properly.

@maheshmnj
Copy link
Member

maheshmnj commented Jul 8, 2021

Please provide your updated flutter doctor's output And also feel free to comment on the solution so that this helps someone who faces this issue in the future.

@maheshmnj maheshmnj added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 8, 2021
@Tejaswgupta
Copy link
Author

Tejaswgupta commented Jul 8, 2021

Please provide your updated flutter doctor's output And also feel free to comment on the solution so that this helps someone who faces this issue in the future.

[✓] Flutter (Channel stable, 2.2.3, on macOS 12.0 21A5268h darwin-arm, locale en-IN)
    • Flutter version 2.2.3 at /Users/tejasw/dev/flutter
    • Framework revision f4abaa0735 (7 days ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/tejasw/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment Zulu11.48+21-CA (build 11.0.11+9-LTS)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode-beta.app/Contents/Developer
    • Xcode 13.0, Build version 13A5155e
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.114

! Doctor found issues in 1 category.

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 8, 2021
@maheshmnj
Copy link
Member

maheshmnj commented Jul 8, 2021

• Java version OpenJDK Runtime Environment Zulu11.48+21-CA (build 11.0.11+9-LTS)

From your doctors output, I could see that you are using Zulu11.48+21-CA (build 11.0.11+9-LTS) and not Azul openJDK 16.0.1+9 so I believe the issue persists with this specific version of the JDK as filed in the original post.

@Tejaswgupta
Copy link
Author

• Java version OpenJDK Runtime Environment Zulu11.48+21-CA (build 11.0.11+9-LTS)

From your doctors output, I could see that you are using Zulu11.48+21-CA (build 11.0.11+9-LTS) and not Azul openJDK 16.0.1+9 so I believe the issue persists with this specific version of the JDK as filed in the original post.

Yes , it is present when using jdk 16.

@maheshmnj
Copy link
Member

Thanks for the confirmation

@markst
Copy link

markst commented Jul 10, 2021

Not sure if it's relevant but having the same drama, is openjdk version "17" supported by Flutter currently?

doctor output
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-arm, locale en-AU)
    • Flutter version 2.2.3 at /opt/homebrew/Caskroom/flutter/2.2.3/flutter
    • Framework revision f4abaa0735 (8 days ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc5)
    • Android SDK at /Users/mt/Library/Android/sdk
    • Platform android-30, build-tools 31.0.0-rc5
    • Java binary at: /opt/homebrew/Cellar/openjdk/16.0.1/libexec/openjdk.jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment Homebrew (build 17+0)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5, Build version 12E262
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] VS Code (version 1.58.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.24.0

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.114

! Doctor found issues in 1 category.

@zanderso
Copy link
Member

/cc @blasten The tool may be having trouble finding things due to using the Android Studio beta that newly has support for M1.

@zanderso zanderso added the P1 High-priority issues at the top of the work list label Jul 13, 2021
@christopherfujino
Copy link
Member

@Tejaswgupta is this still occurring?

@christopherfujino
Copy link
Member

Optimistically closing this as fixed now that Android Studio supports ARM.

@maheshmnj maheshmnj added the r: fixed Issue is closed as already fixed in a newer version label May 4, 2022
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
found in release: 2.2 Found to occur in 2.2 found in release: 2.4 Found to occur in 2.4 has reproducible steps The issue has been confirmed reproducible and is ready to work on P1 High-priority issues at the top of the work list platform-android Android applications specifically platform-host-arm Building on an ARM-based platform r: fixed Issue is closed as already fixed in a newer version t: gradle "flutter build" and "flutter run" on Android tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

No branches or pull requests

6 participants