flutter_device_preview icon indicating copy to clipboard operation
flutter_device_preview copied to clipboard

Package conflict error on basicLocaleListResolution

Open Shamik07 opened this issue 4 years ago • 9 comments

Error: 'basicLocaleListResolution' is imported from both 'package:flutter/src/widgets/app.dart' and 'package:device_preview/src/locales/locales.dart'.

Flutter: Channel dev, 2.3.0-16.0.pre

Recreation: Ran the example provided with the above-mentioned flutter version

Shamik07 avatar May 29 '21 00:05 Shamik07

Im also reporting the same problem

poweriton avatar Jun 11 '21 08:06 poweriton

I'm also facing the same issue

NeatFastro avatar Jun 19 '21 08:06 NeatFastro

When can this issue be resolved please?

definitelyme avatar Aug 09 '21 08:08 definitelyme

For now, the only solution is updating Flutter SDK

definitelyme avatar Aug 09 '21 08:08 definitelyme

I think there is a branch with the fix in. I took a copy of the repo, merged the branch and included in the project using my GitHub URL

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Brendan @.> Sent: Monday, August 9, 2021 9:31:00 AM To: aloisdeniel/flutter_device_preview @.> Cc: Alex Power @.>; Comment @.> Subject: Re: [aloisdeniel/flutter_device_preview] Package conflict error on basicLocaleListResolution (#130)

For now, the only solution is updating Flutter SDK

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/aloisdeniel/flutter_device_preview/issues/130#issuecomment-895043168, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHXS76366LYXAJBOWKSB5F3T36G4JANCNFSM45XXAKGA.

poweriton avatar Aug 09 '21 08:08 poweriton

Are there any (documented) workarounds for this issue?

Flutter 2.5.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 4cc385b4b8 (6 days ago) • 2021-09-07 23:01:49 -0700
Engine • revision f0826da7ef
Tools • Dart 2.14.0

...
../../../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/device_preview-0.7.1/lib/src/state/store.dart:78:31: Error: 'basicLocaleListResolution' is imported from both 'package:flutter/src/widgets/app.dart' and 'package:device_preview/src/locales/locales.dart'.
        final defaultLocale = basicLocaleListResolution(
                              ^^^^^^^^^^^^^^^^^^^^^^^^^
2

FAILURE: Build failed with an exception.

gresnick avatar Sep 13 '21 18:09 gresnick

confirmed getting the same error as @gresnick on both windows 10 and Debian Linux 10 for flutter stable 2.5.0

donaldsteele avatar Sep 14 '21 00:09 donaldsteele

confirmed getting the same error as @gresnick on both windows 10 and Debian Linux 10 for flutter stable 2.5.0

this PR fixes the issue , i was able to apply it and compile https://github.com/aloisdeniel/flutter_device_preview/pull/131/commits/d4d83e8eb8cc12363e1dc6467a65caf7e63ccab5

donaldsteele avatar Sep 14 '21 01:09 donaldsteele

Had the same issue on device_preview: 0.7.1 with Flutter 2.5.2. Upgrading device_preview version to 0.7.4 fixed the issue

rednikisfun avatar Oct 08 '21 17:10 rednikisfun