What to do flutter android x issue - flutter

firebase_auth ^0.7.0 and flutter_firebase_ui ^0.0.13, version solving failed.
I don't want to move to android x anybody help me to solve this issue
http: ^0.12.0
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
#sqflite: any
sqflite: ^1.1.0
folding_cell: "^0.1.0"
flutter_rating: ^0.0.2
firebase_auth: ^0.7.0
firebase_database: ^1.0.5
fluttertoast: ^2.1.5
progress_hud: ^1.1.0
auto_size_text: ^0.3.0
google_sign_in: ^3.0.4
material_search: ^0.2.8
flutter_secure_storage: ^3.1.2
modal_progress_hud: ^0.1.2
flutter_typeahead: ^0.4.1
flutter_facebook_login: ^1.1.1
flutter_firebase_ui: ^0.0.13
json_serializable: ^2.0.1
flutter_spinkit: "^3.1.0"
#shared_preferences: ^0.5.1+1
flutter_html: ^0.8.2
flutter_datetime_picker: ^1.1.3
#location_picker: ^0.0.16
# google_maps_flutter: ^0.4.0
# google_maps_flutter: ^0.0.3+3
#pinch_zoom_image: "^0.2.5"
#photo_view: ^0.2.0
splashscreen: ^1.1.0
#shared_preferences: ^0.4.3
badges: ^0.0.6
percent_indicator: ^1.0.14
#google_maps_flutter: ^0.0.3
#flutter_google_places: ^0.1.4
#location: ^1.4.1
#location: ^2.0.0
#simple_permissions: ^0.1.9
#location_picker: ^0.0.16
#need androidx
#geolocator: any
#geolocator: ^3.0.0
#google_places_picker: ^0.1.0
autocomplete_textfield: ^1.6.4
vibrate: ^0.0.4
cached_network_image: ^0.7.0
#google_maps_flutter: ^0.0.3
flutter_google_places: ^0.1.4
#location: ^1.4.1
#percent_indicator: "^1.0.14"
flutter_date_picker: "^0.1.8"
shared_preferences: 0.4.3

You can avoid from androidx by using these package versions, if you don't want to migrate your project.

Related

I have got Tencent TBS SDK error while publishing my flutter app on google playstore

I got that error more than three time while I start publishing app on Google playstore :
`We found that your app is using Tencent TBS SDK which contains code to download executable code (e.g. dex, JAR, .so files) from a source other than Google Play.
If necessary, you can consult your SDK provider(s) for further information.
Affected Version(s):
App Bundle:88, App Bundle:88, App Bundle:88, App Bundle:86, App Bundle:86, App Bundle:86`
After some research I got that this is related to flutter_filereader package but I don't use it.
Here is the content of my pubspec.yaml.
'''
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
get: ^4.6.1
flutter_screenutil: ^5.1.1
google_fonts: ^3.0.1
font_awesome_flutter: ^10.2.1
country_code_picker: ^2.0.2
flutter_svg: ^1.0.3
syncfusion_flutter_charts: ^20.3.52
# syncfusion_flutter_sliders: ^20.3.52
syncfusion_flutter_gauges: ^20.3.52
# table_calendar: ^3.0.4
country_list_pick: ^1.0.1+5
currency_picker: ^2.0.8
country_currency_pickers: ^2.0.0
select_form_field: "^2.2.0"
# grouped_list: ^5.1.2
# money_converter: ^2.0.1
circular_countdown_timer: ^0.2.1
progress_timeline: ^0.0.5
flutter_launcher_icons: ^0.10.0
dropdown_search: ^5.0.3
dio: ^4.0.6
google_nav_bar: ^5.0.6
file_picker: ^4.6.1
shared_preferences: ^2.0.15
image_picker: ^0.8.5+3
cached_network_image: ^3.2.0
qr_flutter: ^4.0.0
url_launcher: ^6.1.5
http: ^0.13.4
intl: ^0.17.0
numberpicker: ^2.0.1
multi_image_picker2: ^5.0.2
youtube_player_flutter: ^8.1.1
carousel_slider: ^4.1.1
flutter_tawk: ^0.1.0
#emoji_picker_flutter: ^1.0.8
smooth_page_indicator: ^1.0.0+2
liquid_progress_indicator: ^0.4.0
share_plus: ^4.0.10+1
#open_file: ^3.2.1
flutter_slidable: ^2.0.0
flutter_pdfview: ^1.2.2
path_provider: ^2.0.10
contacts_service: ^0.6.3
permission_handler: ^10.2.0
flutter_image_compress: ^1.1.3
#ussd_advanced: ^1.0.0
flutter_paypal: ^0.0.7
firebase_core: ^2.4.1
firebase_messaging: ^14.2.1
flutter_quill:
open_filex: ^3.4.0
'''
Someone can help me to solve that issue...? Thanks

Because every version of flutter_test from sdk depends on path 1.8.1

How ı fix this?
Because every version of flutter_test from sdk depends on path 1.8.1 and fleets depends on path ^1.8.2, flutter_test from sdk is forbidden.
So, because fleets depends on flutter_test from sdk, version solving failed.
pub get failed (1; So, because fleets depends on flutter_test from sdk, version solving failed.)
Process finished with exit code 1
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
video_player: ^2.4.5
image_cropper: ^2.0.3
image_picker: ^0.8.5+3
shared_preferences: ^2.0.15
cached_network_image: ^3.2.1
dio: ^4.0.6
carousel_slider: ^4.1.1
async: ^2.9.0
toast: ^0.3.0
path: ^1.8.2
custom_refresh_indicator: ^1.2.1
flutter_screenutil: ^5.5.3+2
flutter_slidable: ^1.3.1
timeago: ^3.2.2
inview_notifier_list: ^3.0.0
path_provider: ^2.0.11
permission_handler: ^10.0.0
google_fonts: ^3.0.1
fluttertoast: ^8.0.9
photofilters: ^3.0.1
flutter_spinkit: ^5.1.0
cloud_firestore: ^3.2.1
firebase_auth: ^3.4.1
firebase_database: ^9.0.18
firebase_storage: ^10.3.1
firebase_messaging: ^11.4.4
photo_view: ^0.14.0
google_sign_in: ^5.4.0
flutter_image_compress: ^1.1.0
linkable: ^3.0.1
flutter_staggered_grid_view: ^0.6.2
webview_flutter: ^3.0.4
visibility_detector: ^0.3.3
video_thumbnail: ^0.5.0
dynamic_themes: ^1.1.0
nb_utils: ^4.6.12
flutter_svg: ^1.1.1+1
adaptive_theme: ^3.1.0
material_design_icons_flutter: ^5.0.6996
file_picker: ^4.6.1
cupertino_icons: ^1.0.5
intl: ^0.17.0
carousel_pro: ^1.0.0
#flutter_absolute_path: ^1.0.6
url: ^2.0.0
image_gallery_saver: ^1.7.1
screenshot: ^1.2.3
dashed_circle: ^0.0.2
convex_bottom_bar: ^3.0.0
another_flushbar: ^1.10.29
video_compress: ^3.1.1
iconly: ^1.0.1
line_awesome_flutter: ^2.0.0
ionicons: ^0.1.2
share: ^2.0.4
flutter_reaction_button: ^2.0.1+1
filesize: ^2.0.1
flutter_absolute_path:
git:
url: https://github.com/canewsin/flutter_absolute_path.git
Try changing the version of path to any in pubspec.yaml
path: any
This should fetch the correct version of this package.

Flutter Pubnub version solving failed

got this exception when I add pubnub: ^1.4.4 into pubspec.yaml
Because pubnub >=1.0.2 <3.2.0 depends on dio ^3.0.0 and talad_flutter
depends on dio ^4.0.0, pubnub >=1.0.2 <3.2.0 is forbidden. So, because
talad_flutter depends on pubnub ^1.4.4, version solving failed.
I've tried to reduce version of each library but still not luck.
here is my full pubspec.yaml
name: mytest_flutter
description: A new Flutter project.
publish_to: "none"
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
provider: ^5.0.0
http: ^0.13.1
flutter_staggered_grid_view: ^0.4.0
carousel_slider: ^3.0.0
countdown_flutter: ^0.1.2
intl: ^0.17.0
percent_indicator: ^3.0.1
custom_refresh_indicator: ^0.9.0
material_design_icons_flutter: ^4.0.5955
flutter_spinkit: ^5.0.0
image_picker: ^0.7.4
firebase_ml_vision: ^0.11.0+2
firebase_core: ^1.0.3
cached_network_image: ^3.0.0
font_awesome_flutter: ^9.0.0
cloud_firestore: ^1.0.4
url_launcher: ^6.0.3
rflutter_alert: ^2.0.2
shared_preferences: ^2.0.5
smooth_star_rating: ^1.1.1
share: ^2.0.1
flutter_html: ^1.3.0
dio: ^4.0.0
flutter_tags: ^0.4.9+1
package_info: ^2.0.0
smart_select: ^4.3.2
google_maps_flutter: ^2.0.3
geolocator: ^7.0.3
timeago: ^3.0.2
firebase_storage: ^8.0.5
firebase_messaging: ^9.1.3
fl_chart: ^0.36.0
webview_flutter: ^1.0.7
pubnub: ^1.4.4
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: ^0.9.0
flutter:
uses-material-design: true
assets:
- assets/images/
flutter_icons:
android: true
image_path_android: "assets/images/logo.png"
ios: true
image_path_ios: "assets/images/logo.png"
According to PubNub Engineering
This is a very outdated version of the pubnub package. Currently we are on 3.x and about to release 4.x
In general, you can always solve this kind of issue with Dart using dependency overrides
if you update last version. Maybe error version. You can use
provider:
http:
flutter_staggered_grid_view:
carousel_slider:
countdown_flutter:
intl:
percent_indicator:
custom_refresh_indicator:
material_design_icons_flutter:
flutter_spinkit:
image_picker:
firebase_ml_vision:
firebase_core:
cached_network_image:
font_awesome_flutter:
cloud_firestore:
url_launcher:
rflutter_alert:
shared_preferences:
smooth_star_rating:
share:
flutter_html:
dio:
flutter_tags:
package_info:
smart_select:
google_maps_flutter:
geolocator:
timeago:
firebase_storage:
firebase_messaging:
fl_chart:
webview_flutter:
pubnub:
and flutter get pub. It works for you.

Couldn't read file LocalFile:

In flutter Project I am trying to integrate below plugins
cupertino_icons: ^0.1.2
shared_preferences: ^0.5.6+3
# path_provider: ^1.6.5
url_launcher: ^5.4.2
image_picker: ^0.6.3+4
firebase_core: ^0.4.4+3
cloud_firestore: ^0.13.4+2
cached_network_image: ^2.0.0
sqflite: ^1.3.0
connectivity: ^0.4.8+2
google_sign_in: ^4.1.4
google_maps_flutter: ^0.5.24+1
package_info: ^0.4.0+16
webview_flutter: ^0.3.19+9
flutter_bloc: ^3.2.0
video_player: ^0.10.8+1
geolocator: ^5.3.0
device_info: ^0.4.2+1
share: ^0.6.3+6
flutter_local_notifications: ^1.2.2
# firebase_crashlytics: ^0.1.3+3
android_intent: ^0.3.6+1
firebase_performance: ^0.3.1+7
easy_localization: ^2.0.0+1
battery: ^0.3.1+9
qrscan: ^0.2.17
sensors: ^0.4.1+10
# camera: ^0.5.7+4
mvc_pattern: ^3.8.0
flutter_pdfview: ^1.0.1
cloud_firestore_platform_interface: ^1.1.0
flutter_cache_store: ^0.7.2
I am trying to run the below command
flutter pub get
and getting below errors.
Couldn't read file LocalFile:
'C:\Users\abc\flutter_windows_v1.12.13+hotfix.8-stable\flutter\.pub-cache\hosted\pub.dartlang.org\flutt
er_plugin_android_lifecycle-1.0.6\android\src\main\kotlin\io\flutter\plugins\flutter_plugin_android_lifecycle\FlutterAnd
roidLifecyclePlugin.kt' even though it exists. Please verify that this file has read permission and try again.

App Crash when Launch after adding flutter firebase_admob

i just add new dependencies to pubspec.yaml, it's firebase_admob: ^0.8.0+3 but after adding it i got app crash at launch.
here're my other dependencies, any idea to solve ?
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
shared_preferences: ^0.5.1+1
rxdart: ^0.20.0
font_awesome_flutter: ^8.2.0
geolocator: '^3.0.0'
localstorage: ^1.2.0
crypto: ^2.0.6
dio: ^2.0.0
pigment: ^1.0.3
validate: ^1.6.0
hijri: ^0.2.5
device_id: ^0.1.3
vibrate: ^0.0.4
date_format: ^1.0.5
cron: ^0.2.1
audioplayers: ^0.9.0
google_fonts_arabic: ^1.1.7
unicode: ^0.1.0
flutter_html: ^0.8.2
flutter_compass: ^0.1.0
google_sign_in: ^4.0.1+1
http: ^0.11.3+16
easy_alert: ^0.0.2
google_maps_flutter: ^0.2.0
app_settings: ^1.0.5
flutter_local_notifications: ^0.5.0
cached_network_image: ^0.6.0
firebase_admob: ^0.8.0+3
flutter_facebook_login:
git:
url: https://github.com/roughike/flutter_facebook_login
ref: e69fef3
firebase_auth: ^0.8.2
esys_flutter_share: ^0.0.9
dev_dependencies:
flutter_test:
sdk: flutter
I need to see error messages but probably it’s about Android X. Reduce the package version or migrate your project to android x.
Another related question
Change log: