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

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?

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.

usually you will not be allowed to install the applications dowloaded form other sources .... you need to first give permissions in the system Preferences
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 ..
now retry installing ... you are good to go...

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

You can run this command to allow your mac/apps downloaded from anywhere
sudo spctl --master-disable

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

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

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

2022 update
The button is now at
 → System Settings → Privacy & Security → Scroll down to Security → Allow anyway

Related

How to fix "Unable to locate adb" error in AVD Manager?

I can not find any solution for this error when starting virtual device.
There are some similar topics here, I know, but it seems that none of them solves my issue.
I tried:
uninstall/install Android SDK Platform Tools in SDK Manager
add Platform Tools path to system PATH variable (windows)
set ANDROID_ADB_SERVER_PORT
download Platform Tools from https://developer.android.com/studio/releases/platform-tools and install it
For me extending my path helped.
%ANDROID_SDK%\emulator
%ANDROID_SDK%\platform-tools
%ANDROID_SDK%\tools
%ANDROID_SDK%\tools\bin
See https://stackoverflow.com/a/54030970/16364154
I just did this today
1>First of all disable fast restart from here
2>Then enable VT-x from here
3>Third go to your antivirus. If AVG, open the menu options and click quarantine.Else see where to find quaratine chestbox for your antivirus And then there should be something whose file name will be adb.exe. Yes, even if it it shows in the platform tools, there will be a file with file location Idead or something like that and restore it
4>Then go to your android studio and go to file in the top left corner. Click invalidate/caches and then Invalidate and Restart. Then try.
5> Also go to the sdk manager and update everything that isn't updated.
6>Should work\
If this does not work, just comment it and I will find a new way

No Android SDK found SDK tools directory missing

Basically I just installed for the first time in my life Android Studio android-studio-ide-182.5264788-windows.exe and when I open it I get:
Missing SDK, No Android found SDK found
I also checked this path: C:\Users\<user>\AppData\Local but I have not found and Android folder there because I was looking for C:\Users\<user>\AppData\Local\Android\Sdk
If I press next next finish I get:
Nothing to do!
Android SDK is up to date.
SDK tools directory is missing
I have also checked all kind of solutions posted on the internet but none of them fixed my problem.
I figured it out meanwhile but I forgot to update the question. Basically I had those issues because of the corporate proxy which was blocking some resources when installation was in progress.
The solution for me was to configure the proxy inside Android Studio under System Settings > HTTP Proxy. I have set it to Manual proxy configuration.
Besides this I also had to configure some security certificate inside the Java Version which was used by Android Studio. I used this code to do that: https://knowledge.digicert.com/solution/SO4085.html
The last thing was to run this: sdkmanager --licenses. I tried first in cmd but it was not working, I don't know for what reason but after I tried in Idea it worked.
After all of these, it worked. I had a small issue with the .. but it got fixed after I went in Setings > Build, Execution, Deployment > Instant Run and disabled Instant Run.
Download the zip file: http://dl.google.com/android/android-sdk_r24.4.1-windows.zip
Unzip it to SDK directory, and files like this:
D:\Android_sdk\platforms
D:\Android_sdk\tools
D:\Android_sdk\SDK Manager.exe
D:\Android_sdk\SDK Readme.txt
Restart Adnroid Studio, Configure->SDK Manager
Then you can change the Android SDK Location to your SDK path
After installation Click on configuration Go to SDK manager -> SDK tools and
uncheck “Hide Obsolete Packages”
Refer the image
after that check the mentioned package and install it –
C:\Users..\AppData\Local\Android\Sdk\tools\bin is created or not.
After creating project
Go to Tools
AVD manager
Your virtual device -> Create virtual device
Select Hardware :- Nexus 5x (Resolution)
Next
Check the latest or download latest one (OS)
Next
As it is default settings
Launch Virtual device
network adapter ipv4 settings or proxy.. I checked that, then it solved.

Atom installation error on Windows 10

I was getting this error when trying to install Atom using the installer.
I tried to run as Administrator but ever having the same error.
So I opened the Setup Log and found this line in many places of the log:
Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\david\AppData\Local\slack\packages\RELEASES'.
To resolve this problem, I simply tried to change the AppData folder properties, unchecking the Attribute "Read-Only" and applying to subfolders.
After that, I could install the application and everything is working well.
I don't know whether what I did was the best solution, but it fixed my problem :)
Hope this help someone
If you have anti-virus installed on your system. Please disable it and try it once. Hope this will work for you because this worked for me like a charm.
One more thing you can check that your windows update service is also running. You check it out in Task Manager ->
So do this thing and check it out.
This is a permission related issue. Could be you don't have permission to write, in that case run as Administrator.
Right Click on the installer and select Run As Administrator.
If you still have the issue, disable your antivirus, defender or whatever you have to protect your PC from threats. Once Installed Enable it BACK
if you have Dropbox opened, close it.
You can try this:
open control panel
Windows firewall
click allow an app or feature through windows firewall
In that at right bottom click allow another app
Browse the downloaded atom.exe file and click open and click ok
first uninstall or disable the antivirus. In my case Guardian net secure was handling all the things of windows firewall. so i was not able to allow the app through windows firewall. therefore, it is necessary to uninstall these. then restart your laptop.
after restarting open control panel. go to windows firewall. on left top you will see
allow an app or feature through windows firewall . click on it. dialog box appears. click on change settings. at bottom click allow another app. then browse the downloaded file atom.exe. then install it
What worked for me was closing Slack and terminating any of it's processes in Task Manager.
This was what worked for me (Windows 11):
Go to properties>compatability on the installation file. Run the troubleshooter for compatibility, and it shoul provide a solution, wait, and if it works, select that it did so, and you’re all done.
To resolve this problem, I simply tried to change the AppData folder properties, unchecking the Attribute "Read-Only" and applying to subfolders.
After that, I could install the application and everything is working well.
This worked for me on Windows 11 home version.
Hope this helps
I managed to install by finding an older version.

Is there a how to guide for testing livecode?

I have been trying for days to get a simple app any app made in livecode to display either on my tablet, smartphone or emulator. It just doesn't work. Here is what I have done:
I have installed my sdk and pointed livecode to it in preferences.
Picked 2.3 as my version
Check my google usb drivers and they are up to date.
I followed live code's step by step and no success. I am thinking that since I am running windows 7 not a Mac, maybe this cant be done. It seems all the developers run Mac's?
I even tried to make a .apk, It made the file but " There was a problem parsing the package" once I got it on my Galaxy tab. I made sure that I checked the box to allow programs to run on my tablet. So I am still stuck.
To see if the SDK is working correctly you could try to use the Android SDK emulator first.
Open the Android SDK Manager and select the menu Tools->Manage AVDs.
There you can create a virtual Android device and run it.
If the virtual device is running you can see the virtual device under "Development->Test Target in Livecode. Select it and either select "Test" under "Development" or press the "Test" button. Does this work?
That error message means that the operating system on your device is preventing the app from being installed. The most likely reason for this is that you haven't changed the "Allow installation of apps from Unknown Sources" setting on your Galaxy Tab. There are other reasons and solutions for this error message - to see them visit Panagiotis's excellent blog post on the LiveCode website, your error message is in the fifth example
https://livecode.com/how-to-deploy-apps-to-android-devices/

Error with installing svnX (TortoiseSVN alternatives for mac)

I'm trying to install svnX 1.3.4dmg for iMac. It says “svnX” can’t be opened because it is from an unidentified developer. how can I do that. please help me with this.
These instructions are for OSX Yosemite, and may not apply to all versions of OSX. Let me know if you need directions for another version. Also, a warning to anyone attempting to do this with potentially unsafe software, please be sure the program you are installing is legitimate and safe prior to running the installer. See the article linked below for more information about this topic.
To override your security settings and open the app anyway:
1. In the Finder, locate the app you want to open.
2. Don’t use Launchpad to do this. Launchpad doesn’t allow you to access the shortcut menu.
3. Press the Control key, then click the app icon, then choose Open from the shortcut menu.
4. Click Open.
The app should then be saved as an exception to your security settings, and you can open it in the future by double-clicking it just as you can any registered app.
Here is the Apple Support article I took this information from: https://support.apple.com/kb/PH18657?locale=en_US
If anyone is curious, these are the keywords I used to search for solution (Google):
Mac OSX install program bypass unidentified publisher

Resources