-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Hello,
The import of Flutter's package in_app_purchase in combination with lit_firebase_auth is not currently possible. When I try to "pub get" when both dependencies are declared inside pubspec.yaml I get the following errors:
Running "flutter pub get" in <app_name> ...
Because no versions of in_app_purchase match >0.5.1 <0.6.0 and in_app_purchase 0.5.1 depends on json_annotation ^4.0.0, in_app_purchase ^0.5.1 requires json_annotation ^4.0.0.
And because lit_firebase_auth >=0.2.0 depends on freezed_annotation ^0.11.0+1 which depends on json_annotation ^3.0.0, in_app_purchase ^0.5.1 is incompatible with lit_firebase_auth >=0.2.0.
So, because <app_name> depends on both lit_firebase_auth ^0.3.0 and in_app_purchase ^0.5.1, version solving failed.
pub get failed (1; So, because <app_name> depends on both lit_firebase_auth ^0.3.0 and in_app_purchase ^0.5.1, version solving failed.)
Process finished with exit code 1
How can this issue be resolved?
Happy Fluttering!
=========
Other packages:
#Pre-installed package from Flutter for icons
cupertino_icons: ^0.1.3
#Statemanagement package suggested from Flutter team
provider: ^4.3.2+2
#SQLite package for permanents storage
sqflite: ^1.3.1+1
#Package that it's used ONLY to change the status bar color
#to transparent. Used ONLY on main.dart
flutter_statusbarcolor: ^0.2.3
#Firebase packages
firebase_auth: ^0.18.4+1
cloud_firestore: ^0.14.4
lit_firebase_auth: ^0.3.0
firebase_storage: ^4.0.0
#copy text icon
clipboard: ^0.1.2+8
#browse using URLs
url_launcher: ^5.7.10
#for sharing
share: ^0.6.5+4
#adMob google mobile Ads SDK
google_mobile_ads: ^0.11.0+3
#in app purchase
in_app_purchase: ^0.5.1
#onboarding experience
showcaseview:
#shared preferences
shared_preferences: ^0.5.3+4
=========
Flutter doctor:
[✓] Flutter (Channel dev, 2.1.0-12.1.pre, on macOS 11.2.1 20D74 darwin-x64, locale en-GR)
• Flutter version 2.1.0-12.1.pre at /Users/christosfountoulis/Developer/flutter
• Framework revision 8264cb3e8a (2 weeks ago), 2021-03-10 12:37:57 -0800
• Engine revision 711ab3fda0
• Dart version 2.13.0 (build 2.13.0-116.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/christosfountoulis/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] Connected device (2 available)
• iPhone 11 Pro (mobile) • F2B2AB38-5240-460C-8868-DFA14BFFEDA9 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
• Chrome (web) • chrome • web-javascript • Google Chrome
89.0.4389.90
• No issues found!