question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't build `tipsi-stripe` for Android

See original GitHub issue

Before I have submitted the issue

[✓ ] I have read an installation guide
[✓ ] I know that for an iOS I need to install pods because I’ve read the installation guide
[✓ ] I have read a linking guide and checked that everything is OK like in manual linking guide
[✓ ] I know that before using tipsi-stripe I need to set options for my app as described in usage guide

The problem

When trying to run react-native run-android, I get:

> Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
D8: Program type already present: android.support.design.widget.CoordinatorLayout$Behavior

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.

Environment

  • tipsi-stripe version: 5.6.0
  • iOS or Android: Android
  • OS version: macOS
  • React-Native version: 0.57.1

Links to logs and sources

Create a GIST which is a paste of your full logs or sources, and link them here. If you are reporting a bug, always include build or error logs!

For Android, please provide the following sections from android/app/build.gradle:

  • android.compileSdkVersion: 27
  • android.buildToolsVersion: 27.0.3
  • android.defaultConfig.minSdkVersion: 16
  • android.defaultConfig.targetSdkVersion: 26

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:26 (2 by maintainers)

github_iconTop GitHub Comments

26reactions
SaifulBasharcommented, Mar 20, 2019

Add this to build.gradle

compile (project(':tipsi-stripe')) {
        exclude group: 'com.google.android.gms'
        exclude group: 'com.google.firebase'
}
23reactions
marcojrcommented, Jul 28, 2020

/app/bluild.gradle

dependencies { … implementation ‘com.google.firebase:firebase-core:16.0.7’ }

fixed it for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

build for my react-native app fails after I install tipsi-stripe
I'm building an Android app in react-native and I need to add a payment page with Stripe. Unfortunately after I run yarn add...
Read more >
Migration Guide & Issues · tipsi-stripe
For build Android before building app use Jetify. Run. npx jetify npx react-native run-android ... error: cannot find symbol import com.facebook.
Read more >
tipsi-stripe | Yarn - Package Manager
If you're building apps with React Native, please use Stripe's official React Native library. tipsi-stripe. If for some reason you cannot migrate to...
Read more >
tipsi-stripe - npm
React Native Stripe binding for iOS/Android platforms. Latest version: 10.0.0, last published: 3 months ago. Start using tipsi-stripe in ...
Read more >
Trying to add third party module, react native can't find item in ...
... I use the tipsi-stripe library instead of the payment api built into expo. ... seems to build okay in iOS, but in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found