Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[firebase_messaging] D8: Program type already present #1043

Closed
kroikie opened this issue Oct 13, 2019 · 7 comments
Closed

[firebase_messaging] D8: Program type already present #1043

kroikie opened this issue Oct 13, 2019 · 7 comments
Labels
impact: crowd Affects many people, though not necessarily a specific customer with an assigned label. (P2) plugin: messaging type: bug Something isn't working

Comments

@kroikie
Copy link
Collaborator

kroikie commented Oct 13, 2019

Steps to Reproduce

For new project add in pubspcec.yml
camera: ^0.5.4+1
firebase_messaging: ^5.1.4

Logs

D8: Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
...
  Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
  Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver

<!-- If possible, paste the output of running `flutter doctor -v` here. -->
[√] Flutter (Channel stable, v1.7.8+hotfix.4, on Microsoft Windows [Version 10.0.17763.678], locale en-US)
    • Flutter version 1.7.8+hotfix.4 at C:\Projects\Flutter\Flutter
    • Framework revision 20e59316b8 (7 weeks ago), 2019-07-18 20:04:33 -0700
    • Engine revision fee001c93f
    • Dart version 2.4.0


[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\Users\Greg\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.4)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 35.2.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[√] VS Code (version 1.38.0)
    • VS Code at C:\Users\Greg\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.3.0

[√] Connected device (1 available)
    • Redmi 3 • ea9c5b827cf3 • android-arm64 • Android 5.1.1 (API 22)

• No issues found!

@kroikie
Copy link
Collaborator Author

kroikie commented Oct 13, 2019

@jaworskig

The issue at flutter/flutter#39969 has been closed and moved here. Future collaboration on this issue will be done here.

@BondarenkoStas
Copy link

@jaworskig did you manage to fix by migrating to AndroidX as in flutter/flutter#39969 (comment)?

@BondarenkoStas BondarenkoStas added the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Oct 21, 2019
@jaworskig
Copy link

jaworskig commented Oct 21, 2019 via email

@BondarenkoStas BondarenkoStas removed the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Oct 21, 2019
@BondarenkoStas
Copy link

do you still use v1.7.8+hotfix.4 or it's with v1.9.1+hotfix.5?

@jaworskig
Copy link

jaworskig commented Oct 21, 2019 via email

@BondarenkoStas BondarenkoStas added the type: bug Something isn't working label Oct 21, 2019
@iapicca iapicca changed the title Duplication class issue for newest camera ^0.5.4+1 and firebase_messaging ^5.1.4 plugin [firebase_messaging] Duplication class issue for newest camera ^0.5.4+1 and firebase_messaging ^5.1.4 plugin Oct 23, 2019
@iapicca iapicca changed the title [firebase_messaging] Duplication class issue for newest camera ^0.5.4+1 and firebase_messaging ^5.1.4 plugin [firebase_messaging] D8: Program type already present Oct 23, 2019
@iapicca iapicca added the impact: crowd Affects many people, though not necessarily a specific customer with an assigned label. (P2) label Oct 23, 2019
@iapicca
Copy link

iapicca commented Oct 23, 2019

#397
#51
#563
#594
#1043
#1076

@Salakar
Copy link
Member

Salakar commented Nov 5, 2020

Hey all 👋

As part of our roadmap (#2582) we've just shipped a complete rework of the firebase_messaging plugin that aims to solve this and many other issues.

If you can, please try out the dev release (see the migration guide for upgrading and for changes) and if you have any feedback then join in the discussion here.

Given the scope of the rework I'm going to go ahead and close this issue in favor of trying out the latest plugin.

Thanks everyone.

@Salakar Salakar closed this as completed Nov 5, 2020
@firebase firebase locked and limited conversation to collaborators Dec 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
impact: crowd Affects many people, though not necessarily a specific customer with an assigned label. (P2) plugin: messaging type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants