lokinet-flutter-app
lokinet-flutter-app copied to clipboard
Flutter 3.x error
$ ~/fvm/versions/3.13.0/bin/flutter build apk --debug
Resolving dependencies...
The lower bound of "sdk: '>=2.7.0 <3.0.0'" must be 2.12.0'
or higher to enable null safety.
The closes match for 2.12.0 appears to be:
$ fvm releases | grep "│ 2.12" | tail -n 1
Apr 6 22 │ 2.12.0-4.2.pre
Which also throws an error:
$ ~/fvm/versions/2.12.0-4.2.pre/bin/flutter build apk --debug
The current Dart SDK version is 2.17.0-182.2.beta.
Because lokinet_mobile depends on flutter_launcher_icons >=0.12.0 which requires SDK version >=2.18.0 <3.0.0, version solving failed.
The latest 2.x version appears to be:
$ fvm releases | grep "│ 2" | tail -n 1
May 5 22 │ 2.13.0-0.4.pre
Which also throws an error:
$ ~/fvm/versions/2.13.0-0.4.pre/bin/flutter build apk --debug
The current Dart SDK version is 2.17.0-266.8.beta.
Because lokinet_mobile depends on flutter_launcher_icons >=0.12.0 which requires SDK version >=2.18.0 <3.0.0, version solving failed.
asdf
gave the same error
Suggestions?
After some trial and error, here's the version combination that worked for me:
- Flutter: 3.7.12
- Dart: 2.19.6
- NDK: 21.3.6528147
However, it just hangs at the load screen
In the end I just used the apk from https://builds.lokinet.dev/oxen-io/lokinet/stable/?C=M&O=D and it seems to be working.
Spoke too soon. App crashes immediately when trying to connect (e.g. exit.loki)
On Sunday, August 20, 2023 1:58:12 AM EDT Mr. Blue Coat wrote:
Spoke too soon. App crashes immediately when trying to connect (e.g. exit.loki)
the APK build has been borked since lokinet's v0.9.9 tag.
i dont know if that is going to change anytime soon, priorities seem to be mainly focused on session still.