Giter VIP home page Giter VIP logo

Comments (10)

huycozy avatar huycozy commented on July 21, 2024

Hi @WesselvanDam
I checked this issue on my Android 14 device using package example but couldn't reproduce the error. Could you try with this example and confirm?

Also, I see the fetched url_launcher_android is not up-to-date. You can try upgrading to the latest version url_launcher_android: ^6.3.1 and retry.

from flutter.

WesselvanDam avatar WesselvanDam commented on July 21, 2024

Thanks for the reply. I tried the package example, and url's work as expected there; with the following pubspec.lock:

pubspec.lock example app url_launcher: dependency: "direct main" description: path: ".." relative: true source: path version: "6.2.6" url_launcher_android: dependency: transitive description: name: url_launcher_android sha256: "360a6ed2027f18b73c8d98e159dda67a61b7f2e0f6ec26e86c3ada33b0621775" url: "https://pub.dev" source: hosted version: "6.3.1"

In my app, when changing the url_launcher pubspec version to 6.2.6, it does not bump the _android version to 6.3.1 but to 6.2.0. Making it a direct dependency (instead of transitive) and setting it to 6.3.1 does not fix the issue on my app.

So in short:

  1. Using my laptop and my Android phone, my app doesn't work
  2. Using my laptop and my Android phone, the example app does work
  3. Using a different laptop and my Android phone, my app does work

Which is a strange set of observations.
Android version is 13 btw.

from flutter.

huycozy avatar huycozy commented on July 21, 2024

Do you use pigeon package? Could you share dependencies on your project? (pubspec.yaml, pubspec.lock) (It may too long so please put it inside the collapse section as you did above, thanks)

from flutter.

WesselvanDam avatar WesselvanDam commented on July 21, 2024

I do not use pigeon. Here's my dependencies:

pubspec.yaml

dependencies:
  animations: ^2.0.2
  async: ^2.11.0
  blurhash_dart: ^1.2.1
  cached_network_image: ^3.2.1
  cloud_firestore: ^4.15.5
  cloud_functions: ^4.6.0
  connectivity_plus: ^2.0.3
  confetti: ^0.7.0
  crop_image: ^1.0.11
  cupertino_icons: ^1.0.3
  envied: ^0.5.2
  firebase_auth: ^4.15.5
  firebase_core: ^2.25.4
  firebase_messaging: ^14.0.1
  firebase_remote_config: ^4.2.3
  firebase_storage: ^11.5.6
  firebase_ui_firestore: ^1.6.2
  flutter:
    sdk: flutter
  flutter_blurhash: ^0.8.2
  flutter_local_notifications: ^16.1.0
  flutter_localizations:
    sdk: flutter
  flutter_quill: 9.3.4
  flutter_quill_extensions: 9.3.4
  flutter_riverpod: ^2.5.1
  freezed_annotation: ^2.2.0
  go_router: ^13.2.4
  google_fonts: ^4.0.3
  googleapis: ^11.2.0
  googleapis_auth: ^1.4.1
  http: ^1.0.0
  image: ^4.1.7
  image_cropper: ^5.0.0
  image_picker: ^1.0.4
  intl: ^0.18.0
  keyboard_dismisser: ^3.0.0
  package_info_plus: ^4.0.2
  path_provider: ^2.0.1
  riverpod_annotation: ^2.3.5
  share_plus: ^7.0.2
  shared_preferences: ^2.0.0
  slang: ^2.7.0
  slang_flutter: ^2.7.0
  stack_trace: ^1.11.0
  table_calendar: ^3.0.0
  timezone: ^0.9.1
  tuple: ^2.0.1
  url_launcher: ^6.0.6
  url_strategy: ^0.2.0
  visibility_detector: ^0.4.0+2

dependency_overrides:
  super_native_extensions: ^0.8.10
  device_info_plus: ^10.0.1


dev_dependencies:
  flutter_test:
    sdk: flutter
  lint: ^2.1.2
  slang_build_runner: ^2.7.0
  build_runner: ^2.2.0
  fake_cloud_firestore: ^2.4.9
  freezed: ^2.4.7
  mockito: ^5.4.4
  riverpod_generator: ^2.3.5
  custom_lint: ^0.5.4
  riverpod_lint: ^2.3.2
  envied_generator: ^0.5.2

The .lock as a text file because it is quite large indeed:
pubspec.txt

from flutter.

huycozy avatar huycozy commented on July 21, 2024

Thanks for the update. I quoted the fetched package from your pubspec.lock file here:

url_launcher in pubspec.lock
url_launcher:
  dependency: "direct main"
  description:
    name: url_launcher
    sha256: "0ecc004c62fd3ed36a2ffcbe0dd9700aee63bd7532d0b642a488b1ec310f492e"
    url: "https://pub.dev"
  source: hosted
  version: "6.2.5"
url_launcher_android:
  dependency: transitive
  description:
    name: url_launcher_android
    sha256: "31222ffb0063171b526d3e569079cf1f8b294075ba323443fdc690842bfd4def"
    url: "https://pub.dev"
  source: hosted
  version: "6.2.0"

I see url_launcher_android is not up-to-date. Could you try upgrading it to the latest version url_launcher_android: ^6.3.1 and retry? If the issue persists, please share the entire output of flutter run -v, thanks!

from flutter.

WesselvanDam avatar WesselvanDam commented on July 21, 2024

Apologies, in a previous comment I stated:

In my app, when changing the url_launcher pubspec version to 6.2.6, it does not bump the _android version to 6.3.1 but to 6.2.0. Making it a direct dependency (instead of transitive) and setting it to 6.3.1 does not fix the issue on my app.

In the pubspec.yaml and lock I attached later, the versions were reset and showed the older dependencies. Using url_launcher_android 6.3.1 does not fix the problem.

I'll see if I can share the output of flutter run -v later today!

from flutter.

WesselvanDam avatar WesselvanDam commented on July 21, 2024

@huycozy here it is:

log.txt

Not seeing anything strange right away though

from flutter.

darshankawar avatar darshankawar commented on July 21, 2024

@WesselvanDam
I looked at the dependencies you are using and the issue could be occuring due to third party package conflict that you'll need to verify by narrowing down the issue and by removing the packages one by one and see which one could be leading to the error. I suspect flutter_quill and shared_preferences could be the one. See this for reference and check if it helps in your case or not.

from flutter.

WesselvanDam avatar WesselvanDam commented on July 21, 2024

@darshankawar thank you for the leads! The linked issue led me to uninstall Rust (which I didn't need anyway) from my device, and that alone fixed the issue already. It does seem that an updated version of Rust may have solved the issue as well, but as I didn't need it anymore I decided to just uninstall it. Thanks again!

from flutter.

github-actions avatar github-actions commented on July 21, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

from flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.