Build Flutter App
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I get alot of this warning "snapd is not logged in, snap install commands will use sudo". Followed by flutter build issues. Flutter does not like being used as root.
I have tried snap login and snapcraft login
Basic tutorial does not work. Going to keep updating this ticket as I go.
I have fallen back to getting the basic tutorial working:
https:/
I get alot of this error:
"An error occurred when trying to execute 'sudo -H -i env SNAPCRAFT_
"
fix: sudo snap restart multipass.
well, not really. Now it hangs. Going to restart. Feel like it gets the furthest on a first restart. Should I upgrade from 20.04 LTS?
restarting didn't help. Now it just hangs on "starting snapcraft-test". Having alot trouble just getting the same error twice.
snapcraft clean, hangs too
-d does not add any output
sudo doesn't help
deleting tmp files didn't help
recreating project lead me back to the 255 multipass error. Kindof scared to do sudo snap restart multipass.
okay, tutorial works now. Feel like I did a cycle of steps and it happened to work on the second cycle?
Now I am going to add in the platform plugin which was failing my main project.
Worked moving back to original project.
Okay, back to my original error:
[ +27 ms] CMake Error at flutter/
(add_subdirectory):
[ +1 ms] add_subdirectory given source
[ +3 ms]
"flutter/
which is not
[ ] an existing directory.
[ ] Call Stack (most recent call first):
[ +2 ms] CMakeLists.txt:69 (include)
[ ] -- Configuring incomplete, errors occurred!
[ ] See also
"/root/
keOutput.log".
[ +6 ms] Building Linux application... (completed in
1,173ms)
[ ] "flutter linux" took 5,672ms.
[ +2 ms] Unable to generate build files
[ +2 ms]
#0 throwToolExit
#1 _runCmake
(package:
#2 buildLinux
(package:
#3 BuildLinuxComma
(package:
#4 FlutterCommand.
(package:
7)
#5 AppContext.
(package:
#6 CommandRunner.
#7 FlutterCommandR
closure>
(package:
:284:9)
#8 AppContext.
(package:
#9 FlutterCommandR
(package:
:232:5)
#10 run.<anonymous closure>.<anonymous
closure>
#11 AppContext.
(package:
#12 main
(package:
[ +31 ms] ensureAnalytics
[ +1 ms] Running shutdown hooks
[ ] Shutdown hooks complete
[ ] exiting with code 1
Failed to run 'flutter build linux --release -v -t lib/main.dart' for 'gui': Exited with code 1.
Verify that the part is using the correct parameters and try again.
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.
Making a new project and moving the code over worked. Closing.
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
summary: |
- "snapd is not logged in, snap install commands will use sudo" + Build Flutter App |
description: | updated |
Changed in snapcraft: | |
status: | New → Invalid |