It's been 3 days since I am facing this issue and I tried many things but I wasn't able to solve it. I already upgraded all gradlew to 8.0 and nothing succeeded. I thought it had to do with in_app_review but I couldn't find any relation with it.
I tried upgrading all my dependencies but it keeps returning the error.
I already cleaned all the cache, deleted all folders from gradlew and change my firebase ads dependence because I am using it.
* What went wrong:
Execution failed for task ':app:checkHmlDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class com.google.android.play.core.common.IntentSenderForResultStarter found in modules jetified-core-1.8.0-runtime (com.google.android.play:core:1.8.0) and jetified-core-common-2.0.2-runtime (com.google.android.play:core-common:2.0.2)
Duplicate class com.google.android.play.core.common.LocalTestingException found in modules jetified-core-1.8.0-runtime (com.google.android.play:core:1.8.0) and jetified-core-common-2.0.2-runtime (com.google.android.play:core-common:2.0.2)
Duplicate class com.google.android.play.core.common.PlayCoreDialogWrapperActivity found in modules jetified-core-1.8.0-runtime (com.google.android.play:core:1.8.0) and jetified-core-common-2.0.2-runtime (com.google.android.play:core-common:2.0.2)
Duplicate class com.google.android.play.core.listener.StateUpdatedListener found in modules jetified-core-1.8.0-runtime (com.google.android.play:core:1.8.0) and jetified-core-common-2.0.2-runtime (com.google.android.play:core-common:2.0.2)
Duplicate class com.google.android.play.core.review.ReviewInfo found in modules jetified-core-1.8.0-runtime (com.google.android.play:core:1.8.0) and jetified-review-2.0.1-runtime (com.google.android.play:review:2.0.1)
Duplicate class com.google.android.play.core.review.ReviewManager found in modules jetified-core-1.8.0-runtime (com.google.android.play:core:1.8.0) and jetified-review-2.0.1-runtime (com.google.android.play:review:2.0.1)
Duplicate class com.google.android.play.core.review.ReviewManagerFactory found in modules jetified-core-1.8.0-runtime (com.google.android.play:core:1.8.0) and jetified-review-2.0.1-runtime (com.google.android.play:review:2.0.1)
Duplicate class com.google.android.play.core.review.testing.FakeReviewManager found in modules jetified-core-1.8.0-runtime (com.google.android.play:core:1.8.0) and jetified-review-2.0.1-runtime (com.google.android.play:review:2.0.1)
this is my pubspeck:
description: A new Flutter project.
publish_to: 'none'
version: 2.6.1+261
environment:
sdk: ">=2.17.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
intl: ^0.17.0
flutter_lints: ^2.0.1
#novas libs
android_id: ^0.1.3+1
battery_plus: ^3.0.2
#device_apps: ^2.2.0
get_it: ^7.2.0
global_configuration: ^2.0.0-nullsafety.1
firebase_remote_config: ^3.0.4
firebase_core: ^2.4.1
firebase_app_check: ^0.1.1+8
firebase_analytics: ^10.1.0
firebase_dynamic_links: ^5.0.11
firebase_crashlytics: ^3.0.11
firebase_messaging: ^14.2.1
freshchat_sdk: ^0.10.2
flutter_svg: ^1.1.6
shimmer: ^2.0.0
cupertino_icons: ^1.0.3
mobx: ^2.0.7
flutter_mobx: ^2.0.5
shared_preferences: ^2.0.16
dio: ^4.0.0
cached_network_image: ^3.0.0
carousel_slider: ^4.1.1
percent_indicator: ^4.2.2
package_info: ^2.0.2
url_launcher: ^6.1.7
webview_flutter: ^3.0.4
local_auth: ^2.1.3
permission_handler: ^10.2.0
transparent_image: ^2.0.0
clipboard: ^0.1.3
qr_code_scanner: ^1.0.1
share: ^2.0.4
file_picker: ^5.0.1
path_provider: ^2.0.2
image_picker: ^0.8.3
flutter_native_image: ^0.0.6+1
advance_pdf_viewer_fork: ^2.0.0
fluttertoast: ^8.0.8
connectivity_plus: ^3.0.2
contacts_service: ^0.6.3
geolocator: ^9.0.2
network_info_plus: ^3.0.1
image_cacheing: ^0.0.2
facebook_app_events: ^0.18.3
crypto: ^3.0.1
in_app_review: ^2.0.6
camera: 0.10.1
Related
Evening All,
I am was trying to run some old project in github but when trying to run pub get having this kind of error
Running "flutter pub get" in budgex...
Because flutter_html >=2.0.0-nullsafety.1 depends on html >=0.15.0 <1.0.0 and every version of link_previewer depends on html ^0.14.0+2, flutter_html >=2.0.0-nullsafety.1 is incompatible with link_previewer.
So, because budgex depends on both link_previewer ^1.2.1 and flutter_html ^2.2.1, version solving failed.
pub get failed (1; So, because budgex depends on both link_previewer ^1.2.1 and flutter_html ^2.2.1, version solving failed.)
exit code 1
i am already change some dependencies into latest version without local package folder and files from plugin here is the pubspec.yaml
name: budgex
description: This Application is a Simple Budget Manager
publish_to: "none"
version: 1.0.0+1
environment:
sdk: ">=2.12.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
bitbox : ^0.0.5
flutter_icons : ^1.1.0
link_previewer : ^1.2.1
web3dart : ^2.5.1
animated_bottom_navigation_bar: ^0.2.1
animations: ^1.1.2
badges: ^2.0.1
beamer: ^0.14.1
bitcoin_flutter: ^2.0.2
bot_toast: ^3.0.5
cached_network_image: ^3.0.0
chart_sparkline: ^1.0.5
charts_flutter: ^0.6.0
container_tab_indicator: ^0.3.0
csv: ^4.0.3
cupertino_icons: ^1.0.2
dartx: ^0.7.1
dartz: ^0.10.0-nullsafety.2
data_connection_checker: ^0.3.4
decimal: ^1.2.0
encrypt: ^5.0.0
english_words: ^3.1.0
extended_image: ^4.1.0
file_picker: ^3.0.3
fl_chart: ^0.36.2
flash: ^1.5.1
flex_color_picker: ^2.1.1
flutter_barcode_sdk: ^1.2.2
flutter_bloc: ^7.0.0
flutter_dynamic_icon: ^2.0.0
flutter_echarts: ^2.1.0
flutter_facebook_auth: ^3.5.0
flutter_form_builder: ^6.0.1
flutter_html: ^2.2.1
flutter_phoenix: ^1.0.0
flutter_screenutil: ^4.0.3
flutter_slidable: ^0.5.7
flutter_spinkit: ^4.1.2+1
flutter_staggered_animations: ^0.1.2
flutter_staggered_grid_view: ^0.4.0
flutter_svg: ^0.22.0
flutter_swiper: ^1.1.6
flutter_uix: ^0.1.2-nullsafety.2
font_awesome_flutter: ^9.1.0
formz: ^0.4.0
freezed_annotation: ^0.14.2
google_fonts: ^2.1.0
google_sign_in: ^5.0.4
grouped_list: ^4.0.0
hive: ^2.0.4
hive_flutter: ^1.1.0
hooks_riverpod: ^0.14.0+4
http_auth: ^0.2.5
json_diff: ^0.2.0
keccak: ^1.0.3
keyboard_avoider: ^0.1.2
liquid_pull_to_refresh: ^3.0.0
local_auth: ^1.1.6
logger: ^1.0.0
marquee: ^2.2.0
material_design_icons_flutter: ^4.0.5345
modal_bottom_sheet: ^2.0.0
money_formatter: ^0.0.3
onesignal_flutter: ^3.0.0
overlay_support: ^1.2.0
package_info: 2.0.0
page_transition: ^1.0.9
path: ^1.6.4
path_provider: ^2.0.2
percent_indicator: ^2.1.7+2
permission_handler: ^8.1.2
pinput: ^1.2.0
pretty_qr_code: ^2.0.2
protobuf: ^2.0.0
protoc_plugin: ^20.0.0
qr: ^2.1.0
qr_flutter: ^4.0.0
random_string: ^2.0.1
readmore: ^1.0.1
riverbloc: ^0.5.0
rounded_loading_button: ^2.0.5
shared_preferences: ^2.0.6
shimmer: ^1.0.1
showcaseview: ^0.1.6
sticky_headers: ^0.1.8
syncfusion_flutter_charts: ^19.2.44+1
table_calendar: ^3.0.1
theme_provider: ^0.5.0
timeago: ^3.1.0
transparent_image: ^1.0.0
ultimate_data_generator : ^1.0.0
validators: ^2.0.0+1
dev_dependencies:
flutter_test:
sdk: flutter
bloc_test: ^8.0.2
build_runner: ^2.0.5
flutter_launcher_icons: ^0.9.0
flutter_native_splash: ^1.1.9
freezed: ^0.14.2
hive_generator: ^1.1.0
json_serializable: ^4.1.3
mockito: ^5.0.10
dependency_overrides:
args: ^2.1.1
crypto: ^3.0.0
hex: ^0.1.2
convert: ^3.0.0
intl: ^0.17.0
bip39: ^1.0.5
pointycastle: ^3.0.0
dart_style: ^2.0.0
http: ^0.13.0
fixnum: ^1.0.0
vin_decoder : ^0.1.4+1
basic_utils : 3.3.3
flutter_icons:
android: true
ios: true
image_path: assets/icon/icon.png
flutter_native_splash:
image: assets/images/splash.png
color: "121212"
android_disable_fullscreen: true
flutter:
uses-material-design: true
# shed hill people icon fragile critic vicious return write coconut jump clutch
# royal calm banner faith tiny capital tooth nerve attract addict garbage wish
assets:
- assets/
- assets/images/
- assets/rive/
- assets/icon/
- fonts/
fonts:
- family: Avenir Next
fonts:
- asset: fonts/AvenirNext.otf
- family: WorkSans
fonts:
- asset: assets/fonts/WorkSans-Regular.ttf
- asset: assets/fonts/WorkSans-Medium.ttf
weight: 500
- asset: assets/fonts/WorkSans-SemiBold.ttf
weight: 600
- asset: assets/fonts/WorkSans-Bold.ttf
weight: 700
# - family: Roboto
# fonts:
# - asset: fonts/Roboto-Italic.ttf
# - asset: fonts/Roboto-normal.ttf
Anyone can help this problem? appreciated it for helping
One of the way to solve above problem is, rather than specifying version code beside of any package you can just do below thing
flutter_html:
link_previewer:
...
you will need to update your dependencies so that they are compatible with each other. You can do this by modifying the version constraints in your pubspec.yaml file. For example, if you change the version constraint for html in link_previewer to be compatible with the constraint in flutter_html, you should be able to run flutter pub get
It is also possible that a newer version of link_previewer or flutter_html may have been released that resolves this conflict, so you may want to check for updates to these packages. However, be sure to carefully review the changelog for any updates to make sure that they won't break your project.
This error indicates that there is a conflict between the versions of link_previewer and flutter_html
I'm trying to build the apk of my project but I got:
* What went wrong:
Execution failed for task ':audioplayers:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
> Android resource linking failed
ERROR:C:\Users\pc\.gradle\caches\transforms-3\1c118aff0ddf4faaf93ec03867fed550\transformed\core-1.9.0-rc01\res\values\values.xml:104:5-113:25: AAPT: error: resource android:attr/lStar not found.
I don't know what this means, nor how to solve it, I saw online that I should have this line
implementation "androidx.core:core-ktx:1.6.0"
in mine app/build.grande but I tried and nothing changes.
Plugins I'm currently using:
cupertino_icons: ^1.0.5
path_provider: ^2.0.11
encrypt: ^5.0.1
flutter_speed_dial: ^6.0.0
telephony: ^0.2.0
audioplayers: any
flutter_audio_recorder2: ^0.0.2
flutter_local_notifications: ^9.7.0
flutter_launcher_icons: ^0.9.0
camera: ^0.10.0+1
image_picker: any
imgur: any
permission_handler: ^10.0.0
flutter_sms: ^2.3.3
audio_session: ^0.1.10
flutter_sound: ^9.2.13
flutter_sound_platform_interface: ^9.2.13
lottie: ^1.4.1
file_picker: ^5.0.1
environment: ^0.0.2
argon_buttons_flutter: ^1.1.0
flutter_native_splash: ^2.2.7
background_sms: ^0.0.4
animations: ^2.0.3
Override the http package to the latest one by including dependency_overrides in the pubspec.yaml. It's going to be like the following:
dependency_overrides:
http:
version: ">=0.13.5"
Also, set audioplayers version to ^1.0.1.
dependencies:
audioplayers: ^1.0.1
# ...
I'm developing flutter application and I using below dependencies for my project.
webview_flutter: ^3.0.0
connectivity_plus: ^2.2.0
html: ^0.15.0
sn_progress_dialog: ^1.0.3
http: ^0.13.4
pin_code_fields: ^7.3.0
flutter_barcode_scanner: ^2.0.0
url_launcher: ^6.0.20
datetime_picker_formfield: ^2.0.0
extended_masked_text: ^2.3.1
image_picker: ^0.8.4+8
timelines: ^0.1.0
carousel_slider: ^4.0.0
page_transition: ^2.0.5
provider: ^6.0.2
native_updater: ^0.1.1
flutter_svg: ^1.0.3
dropdown_search: ^2.0.1
flutter_rating_bar: ^4.0.0
expandable: ^5.0.1
crypto: ^3.0.1
device_info_plus: ^3.2.1
dart_ipify: ^1.1.1
qr_code_scanner: ^0.6.1
flutter_jailbreak_detection: ^1.8.0
flutter_secure_storage: ^5.0.2
firebase_messaging: ^11.2.6
firebase_core: ^1.12.0
cloud_firestore: ^3.1.8
flutter_google_places: ^0.3.0
google_directions_api: ^0.9.0
geolocator: ^8.2.0
geocoding: ^2.0.2
google_maps_flutter: ^2.1.1
location: ^4.3.0
flutter_polyline_points: ^1.0.0
permission_handler: ^9.2.0
But in my android folder shows unused dependencies . Anyone can explain this and how to remove this from project ?
Ex:package_info_plus
I am not sure if I am giving the correct answer but, this may be because each flutter package/plugin may depend on others. If you see the device_info_plus on pub.dev you will see its dependencies. See the below image.
I'm trying to build my flutter project but I'm getting this error so I'm just wondering how can I fix this. This happens after adding the Cookie Manager plugin. I can run the app on an emulator and physical device without any problem but it gives me this error when I try to build it.
Podfile
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
use_frameworks!
pubspec.yaml
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
lottie: ^1.2.1
hive: ^2.0.4
hive_flutter: ^1.1.0
flutter_hooks: ^0.16.0-nullsafety.0
hooks_riverpod: ^0.13.1
http: ^0.13.3
flutter_svg: ^0.22.0
flutter_facebook_auth: ^3.5.2
carousel_slider: ^4.0.0
modal_bottom_sheet: ^2.0.0
flutter_html: ^2.1.1
flutter_spinkit: ^5.0.0
jiffy: ^4.1.0
share: ^2.0.4
google_sign_in: ^5.1.1
wp_json_api: ^3.0.0
fluttertoast: ^8.0.8
flutter_tts: ^3.2.2
email_validator: ^2.0.1
onesignal_flutter: ^3.2.7
google_mobile_ads: ^0.13.3
url_launcher: ^6.0.9
sticky_headers: ^0.2.0
flutter_styled_toast: ^2.0.0
flutter_math_fork: 0.4.2+2
persistent_bottom_nav_bar: ^4.0.2
provider: ^6.0.2
path_provider: ^2.0.8
flutter_launcher_icons: "^0.9.2"
webview_flutter: ^2.0.4
webview_cookie_manager: ^2.0.0
shared_preferences: ^2.0.12
This errors shows up on terminal and I have checked everything since yesterday trying to find the duplicated dependencies but I couldn't find it.
This is the error:
Duplicate class com.google.android.gms.measurement.internal.zzik found in modules jetified-play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and jetified-play-services-measurement-impl-17.4.1-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.4.1)
This is my pubspec.yaml:
firebase_core: 0.5.0
cloud_firestore:
firebase_storage: ^4.0.0
firebase_auth: ^0.18.0
google_sign_in: ^4.5.6
location: 3.0.2
google_maps_flutter: ^0.5.27+3
font_awesome_flutter: 8.4.0
geolocator: ^5.1.2
cupertino_icons: ^0.1.3
appodeal_flutter: ^0.5.0
firebase_messaging: ^7.0.2
intro_slider: ^2.3.3
shared_preferences: ^0.5.12
translator: ^0.1.5
loading: ^1.0.2
permission_handler: ^5.0.1+1
beauty_textfield: ^0.0.1
snaplist: ^0.1.8
image_picker: ^0.6.7+11
geoflutterfire: 2.2.1
path_provider: ^1.6.18
image: ^2.1.18
uuid: ^2.2.2
datetime_picker_formfield: ^1.0.0
share: ^0.6.5+2