Flutter App Running Error: Dart can not be opened, Developer can not be verified after upgrading to Catalina
Android StudioFlutterDartFlutter DependenciesMacos CatalinaAndroid 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?
Android Studio Solutions
Solution 1 - Android Studio
Do this steps and repeat until allow all you need and stop notifications. Solve for me.
- On your Mac, choose Apple menu > System Preferences, click Security & Privacy, then click General.
- Click the lock icon to unlock it, then enter an administrator name and password.
- 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
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:
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