I get a flutter dependency error while building:
23:46:12 | Because scrollable_positioned_list 0.2.3 requires Flutter SDK version >=1.13.8 and no versions of scrollable_positioned_list match >0.2.3 <0.3.0, scrollable_positioned_list ^0.2.3 is forbidden.
23:46:12 | So, because tachidesk_sorayomi depends on scrollable_positioned_list ^0.2.3, version solving failed.
23:46:12 FINE: Exception type: SolveFailure
23:46:12 FINE: package:pub/src/solver/version_solver.dart 311:5 VersionSolver._resolveConflict
23:46:12 | package:pub/src/solver/version_solver.dart 132:27 VersionSolver._propagate
23:46:12 | package:pub/src/solver/version_solver.dart 96:11 VersionSolver.solve.<fn>
23:46:12 | ===== asynchronous gap ===========================
23:46:12 | dart:async Future.catchError
23:46:12 | package:pub/src/utils.dart 109:52 captureErrors.wrappedCallback
23:46:12 | package:stack_trace Chain.capture
23:46:12 | package:pub/src/utils.dart 122:11 captureErrors
23:46:12 | package:pub/src/command.dart 183:13 PubCommand.run
23:46:12 | package:args/command_runner.dart 209:27 CommandRunner.runCommand
23:46:12 | package:pub/src/command_runner.dart 174:24 PubCommandRunner.runCommand
23:46:12 | package:pub/src/command_runner.dart 159:20 PubCommandRunner.run
23:46:12 | package:dartdev/dartdev.dart 45:56 runDartdev
23:46:12 | /b/s/w/ir/cache/builder/sdk/pkg/dartdev/bin/dartdev.dart 11:9 main
23:46:12 ---- End log transcript ----
Pinned Comments
Bitals commented on 2022-04-20 18:09 (UTC) (edited on 2022-04-20 19:00 (UTC) by Bitals)
Seems like flutter uses git under the hood to find out its own version, and git didn't like that /opt/flutter was owned by root. So in addition to adding yourself to flutterusers group one also needs to run
after installing flutter-beta, or just build as root (not the best idea).
And
clang
needs to be mentioned as a make-dependency too, my docker environment didn't have it and failed. Thoughclang
is just the default forcmake
with standard config, I guessllvm
or other C/C++ compiler should be fine. Not sure if PKGBUILD supports multiple options for dependencies and if it's not a cmake problem.All good after that anyway.
mahor1221 commented on 2022-03-09 10:58 (UTC) (edited on 2022-03-09 11:05 (UTC) by mahor1221)
If you are getting permission errors when making this package like:
Add your user into the group flutterusers then relogin:
It's explained at the end of flutter AUR package installation: https://aur.archlinux.org/packages/flutter