Flutter App Running Error: Dart can not be opened, Developer can not be verified after upgrading to Catalina

Android StudioFlutterDartFlutter DependenciesMacos Catalina

Android Studio Problem Overview


I was using the latest version of Android Studio IDE for creating flutter apps. But when I upgraded from Mojave to Catalina and tried to open my flutter code on IDE it gave me an error saying:

> Dart can not be opened because the Developer can not be verified

What is the reason behind the error and how can I solve the issue?

Do I have to install flutter and relative development tools from scratch again or is there any other way to resolve the issue?

enter image description here

Android Studio Solutions


Solution 1 - Android Studio

Do this steps and repeat until allow all you need and stop notifications. Solve for me.

  1. On your Mac, choose Apple menu > System Preferences, click Security & Privacy, then click General.
  2. Click the lock icon to unlock it, then enter an administrator name and password.
  3. Select the sources from which you’ll allow software to be installed: There should be a button that says "Allow anyway". If not make sure you've cancelled the error dialog.

Solution 2 - Android Studio

usually you will not be allowed to install the applications dowloaded form other sources .... you need to first give permissions in the system Preferences

  1. apple-icon on left top corner > System Preferences > click Security & Privacy > then click General... now Click the lock icon to unlock it ... 2.now, you will be shown with below attached image ... click allow anyway .. enter image description here
  2. now retry installing ... you are good to go...

Solution 3 - Android Studio

You can run this command to allow your mac/apps downloaded from anywhere

sudo spctl --master-disable 

Solution 4 - Android Studio

Disabling entire Gate Keeper is definitely not a good idea as it will result running any type of program on your system.

You can add Dart to the white list by running this in terminal:

sudo spctl --add "Path_to_flutter/bin/cache/dart-sdk/bin/dart"

You might require to reboot the system in order to apply the changes.

There are several other binaries other than Dart that may get blocked as well.

You can run GateKeeper script to fix the issue:

https://github.com/AmirKamali/Flutter_GateKeeper_Fix

I have published an article with more information how to fix this:

https://medium.com/@amir.n3t/how-to-fix-flutter-idevice-id-running-errors-in-mac-osx-catalina-7aa1f89f61aa

Solution 5 - Android Studio

So who the hell is an "identified developer" if Google chooses not to be one? Something is wrong with this

Solution 6 - Android Studio

This issue can be resolved by deleting the artefacts directory and running flutter doctor once again - More Info Here

Solution 7 - Android Studio

i updated mac to Big sur and then got this problem.

Allowing dart in the security and privacy settings and then Deleting ...flutter/bin/cache folder solved it for me.

run flutter doctor in terminal afterwards to reinstall dart SDK

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMD Sazid Hasan DipView Question on Stackoverflow
Solution 1 - Android StudioÁlvaro MenezesView Answer on Stackoverflow
Solution 2 - Android StudioAravind SiruvuruView Answer on Stackoverflow
Solution 3 - Android StudioAli SarshoghView Answer on Stackoverflow
Solution 4 - Android StudioAmir.n3tView Answer on Stackoverflow
Solution 5 - Android StudioRobert MonferaView Answer on Stackoverflow
Solution 6 - Android StudioShadab MehdiView Answer on Stackoverflow
Solution 7 - Android StudioEfhemView Answer on Stackoverflow