Azure-docs: Error: Program type already present: android.support.v4.app.LoaderManager$LoaderCallbacks

Created on 15 Oct 2018  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-docs

I have been getting this error messages when I am on the step: Add Firebase Cloud Messaging to the project. Once I add the following statements in the gradle:

  1. project level
    classpath 'com.google.gms:google-services:4.1.0'
  2. app level:
    implementation 'com.google.firebase:firebase-core:16.0.4'
    implementation 'com.google.firebase:firebase-messaging:17.3.3'
    bottom of app gradle:
    apply plugin: 'com.google.gms.google-services'

I get the error :
Error: Program type already present: android.support.v4.app.LoaderManager$LoaderCallbacks

It seems that the documentation needs to be updated on additional steps


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

app-service-mobilsvc cxp in-progress product-question triaged

Most helpful comment

i was able to solve this issue by adding this dependency
implementation 'com.android.support:preference-v7:28.0.0'

All 5 comments

@zzulueta Thanks for the feedback! We are currently investigating and will update you shortly.

Hi @zzulueta, have you tried to update to the latest version of your project's dependencies? Also, it is a known issue google-services 4.1.0 does not work with the latest versions of the Android Gradle Plugin (mostly 3.3.0-alpha0x). They're tracking the issue on their side.

i was able to solve this issue by adding this dependency
implementation 'com.android.support:preference-v7:28.0.0'

We are glad you were able to resolve this issue.

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

@zzulueta It's work, thank you !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JeffLoo-ong picture JeffLoo-ong  Â·  3Comments

jharbieh picture jharbieh  Â·  3Comments

bdcoder2 picture bdcoder2  Â·  3Comments

bityob picture bityob  Â·  3Comments

Agazoth picture Agazoth  Â·  3Comments