pikaju / flutter-braintree

Flutter plugin that wraps the native Braintree SDKs. Enables payments with credit cards, PayPal, Google Pay and more.
https://pub.dev/packages/flutter_braintree
MIT License
64 stars 119 forks source link

version 1.1.0+1 build failed #51

Closed qinho closed 3 years ago

qinho commented 3 years ago

update to v1.1.0+1, build the app, it happened:

FAILURE: Build failed with an exception.

dinit-sadaindia commented 3 years ago

I am facing same issue. Any update?

Akash9151 commented 3 years ago

I'm also facing same issue. Any Update....?

DriftingShadows commented 3 years ago

same here, my builds failing. @pikaju any ideas?

JoyEnergiser commented 3 years ago

Me too please,but the real reason I'm trying to update my flutter-braintree to 1.1.0+1 is because of the comment of this problem that I'm also having when I tried to release my app to the play store on flutter-braintree 1.1.0 I got a mail about HostnameVerifier interface.

https://stackoverflow.com/questions/64555232/flutter-android-unsafe-implementation-of-the-hostnameverifier-interface

So I'm hoping updating my Braintree to 1.1.0+1 thinking it will fix the above issue,but now flutter-braintree 1.1.0+1 is causing me a similar build error in this thread,so who knows if it has even fixed the initial issue that caused me to come look for an upgrade.

`What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'. Could not find org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk:2.2.4-1. Searched in the following locations:

`

Hoping and waiting 👍

samaralii commented 3 years ago

same here. any fix yet?

VNBijani commented 3 years ago

same here, any update?

TejaDroid commented 3 years ago

With using below code found working. you just have to add to your app level build.gradle the depenency like so:

dependencies {
   .....
    implementation ('com.braintreepayments.api:drop-in:5.0.1')
}

and to your android level build.gradle the mave repository like so:

allprojects {
    repositories {
        google()
        jcenter()
        maven {
            url "https://cardinalcommerce.bintray.com/android"
            credentials {
                username 'braintree-team-sdk@cardinalcommerce'
                password '220cc9476025679c4e5c843666c27d97cfb0f951'
            }
        }
    }
}
muiz6 commented 3 years ago

I fixed it by adding this:

android {
        lintOptions {
        // ...
        checkReleaseBuilds false // Insert this line
    }
}

to app level buid.gradle file

ilicmilan commented 3 years ago

Any update on this?

pikaju commented 3 years ago

Sorry for the wait guys, this should hopefully be fixed in version 1.2.1 of flutter_braintree.