Question
Because hive_generator >=0.6.0 depends on dartx ^0.2.0 and chatting depends on dartx ^0.4.0, hive_generator >=0.6.0 is forbidden.
So, because chatting depends on hive_generator ^0.7.0+2, version solving failed.
pub get failed (1; So, because chatting depends on hive_generator ^0.7.0+2, version solving failed.)
When I execute “pub get”, I got the above error.
The below is pubspec.yaml.
Could you help me how to fix it?
Code sample
environment:
sdk: “>=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
agora_rtc_engine: ^1.0.11
animator: ^1.0.0+5 # old ok
cached_network_image: ^2.2.0+1
cloud_firestore: ^0.13.5
country_codes: ^0.1.0
cupertino_icons: ^0.1.3
dartx: ^0.4.0
dio: ^3.0.9
firebase_analytics: ^5.0.11
firebase_auth: # use the latest version
firebase_core: ^0.4.4+3
firebase_messaging: ^6.0.13
firebase_storage: ^3.1.5
flt_telephony_info: ^0.1.3
flutter_facebook_login: ^3.0.0
flutter_image_compress: ^0.6.7
flutter_local_notifications: ^1.4.3
flutter_native_timezone: ^1.0.4
flutter_slidable: "^0.5.4"
geolocator: ^5.3.1
google_sign_in: ^4.4.4
hive: ^1.4.1+1
hive_flutter: ^0.3.0+2
http: ^0.12.1
intl: ^0.16.1
fluttertoast: ^4.0.1
image_cropper: ^1.2.1
image_picker: ^0.6.6+1
package_info: ^0.4.0+17
path_provider: ^1.6.7 # For OS-specific directory paths
path:
permission_handler: ^4.4.0+hotfix.4 # old ok
photo_view: ^0.9.2
provider: ^4.1.0
quiver: ^2.1.3
shared_preferences: ^0.5.7+1
sqflite: ^1.3.0+1
timezone: ^0.5.7
uuid: ^2.0.4
dev_dependencies:
flutter_test:
sdk: flutter
hive_generator: ^0.7.0+2
build_runner:
Duplicate of https://github.com/hivedb/hive/issues/247 (issue thread also contains a temporary fix)
package upgrade will solve the issue. Can you guys do it fase?
Getting the issue. can we expect a fix soon.
As a workaround, I am using a dependency override to manually set the package.
On 14 May 2020, 19:52 -0400, mHaisham notifications@github.com, wrote:
Getting the issue. can we expect a fix soon.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
We cant go for production with dependency override. For developing i did the same. If you guys fix this, it will be very helpful
@dinit-bwd I know this is still just a temporary solution, but you can always depend on one of the forks using git, which is safe as far as package-resolution goes.
Fixed in latest version of hive_generator.
Most helpful comment
309 Fixes this