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.

Problem linking tipsi-stripe with rn 0.52.0

See original GitHub issue

I keep running into compatibility issues with basic rn 0.52.0 installation

Version tipsi-stripe v5.2.0

Following Compilation Error when adding tipsi to the build:

C:\Users\piust\Documents\nightowl-mobile\android\app\build\intermediates\res\merged\debug\values-v24\values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that m

atches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

app/build.gradle

compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        targetSdkVersion 22
       ....

dependencies {
    compile project(':react-native-image-picker')
    compile project(':react-native-fbsdk')
    compile project(':open-gmail')
    compile project(':tipsi-stripe')
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:23.0.1"
    compile "com.facebook.react:react-native:+"  // From node_modules
    compile(project(':react-native-maps')){
        exclude group: 'com.google.android.gms', module: 'play-services-base'
        exclude group: 'com.google.android.gms', module: 'play-services-maps'
    }
    compile 'com.google.android.gms:play-services-base:+'
    compile 'com.google.android.gms:play-services-maps:+'
}

build.gradle

allprojects {
    repositories {
        // Add jitpack repository (added by tipsi-stripe)
        maven { url "https://jitpack.io" }
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
        configurations.all {
            resolutionStrategy {
                force 'com.facebook.android:facebook-android-sdk:4.22.1'
            }
        }
    }
}

I tried upgrading build tools and other solutions from earlier tickets but ended up failing to fix it. Please help resolving this issue.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

11reactions
nenticommented, Apr 14, 2018

I got the solution. As far as I understand I have different libraries that use different com.google.android.gms versions, so after upgrading to SDK version 26 the app crashed through overfitting the namespace with 2 libraries.

Resolution was found here: https://github.com/react-community/react-native-maps/issues/1777#issuecomment-344138434

I solved it by adding resolutionStrategy to android/build.gradle

configurations.all {
    resolutionStrategy {
        force 'com.facebook.android:facebook-android-sdk:4.22.1'
    }
    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        if (details.getRequested().getGroup() == 'com.google.android.gms') {
            details.useVersion('11.8.0')
        }
    }
}
5reactions
mark-slepkovcommented, Aug 9, 2018

I have solved this https://github.com/tipsi/tipsi-stripe/issues/273#issuecomment-381341494 error by adding next strings into my ./android/build.gradle

ext {
    ...
    firebaseVersion = "16.0.1"
    googlePlayServicesVersion = "15.0.1"
    ...
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Tipsi stripe not working with android react native
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource linking failed /Users/admin/.
Read more >
Linking · tipsi-stripe
Automatically. Run react-native link tipsi-stripe so your project is linked against your Xcode project and all CocoaPods dependencies are installed.
Read more >
hoxfon - Bountysource
I tried to complete a connect call from any user to client twilio (Andorid Device), but "deviceDidReceiveIncoming" not working.
Read more >
tipsi-stripe - npm
React Native Stripe binding for iOS/Android platforms. Latest version: 10.0.0, last published: 6 months ago. Start using tipsi-stripe 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