这是3天以来,我面对这个问题,我尝试了很多事情,但我不能解决它。我已经将所有gradlew升级到8.0,但没有成功。我以为它与in_app_review有关,但我找不到任何关系。
我尝试升级所有依赖项,但它一直返回错误。我已经清理了所有该高速缓存,删除了gradlew的所有文件夹,并改变了我的firebase广告依赖,因为我正在使用它。
* 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)
这是我的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
1条答案
按热度按时间tez616oj1#
也许为时已晚,但 in_app_review 包导致了问题。
您可以尝试lock in_app_review:2.0.4,看看冲突是否持续