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

Build error: Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver #29

Open
wifisher opened this issue Jun 18, 2019 · 2 comments

Comments

@wifisher
Copy link

Google recently (June 17, 2019) released version 17.0.0 of the location services library. This release includes the following breaking change:

Migration from Android Support Libraries to Jetpack (AndroidX) Libraries.

See the Google Play Services Release Notes for more information.

This change results in a build failure with the following error if the Android Support library is used by another plugin (for example cordova-plugin-camera):

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

As a short term work-around is to use version 16.0.0 of the location services library. This can be achieved by changing the following line in the plugin.xml file from:

<framework src="com.google.android.gms:play-services-location:+" />

to

<framework src="com.google.android.gms:play-services-location:16.+" />

This will allow the app to build again.

@wifisher
Copy link
Author

I have submitted a Pull Request that makes the above change.

@jing-zhou
Copy link

having the same problem, expecting the solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants