Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter installation not working?

Tags:

flutter

I have installed the flutter folder in Program Files (x86) and have added the .../flutter/bin directory to path. Running flutter doctor in the flutter_console.bat window or just a normal command prompt window gives nothing and running as admin in either gives me the error:

Updating flutter tool...
\flutter\.pub-cache was unexpected at this time.

What do I do? Thanks in advance for any help.

like image 967
boi Avatar asked Apr 11 '18 15:04

boi


2 Answers

You shouldn't put Flutter in Program Files. These folders are not writeable by non-Admin users so may fail when trying to write files if you're not running your console/editor as Admin.

like image 155
Danny Tuppeny Avatar answered Sep 21 '22 15:09

Danny Tuppeny


Cut flutter folder from Program Files (x86) to Program Files. It has problem with x86 but works fun in x64 directory. And update the environment variables with the new path.

like image 21
DiRiNoiD Avatar answered Sep 21 '22 15:09

DiRiNoiD