Я пытаюсь создавать и обрабатывать платежи в своем приложении, но продолжаю сталкиваться с этой ошибкой.
Кто-нибудь может помочь?
Это мой код:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.0'
defaultConfig {
applicationId "com.firebase.alokraj.firebaselogin"
minSdkVersion 23
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/DEPENDENCIES'
// prevent error message "More than one file was found with OS independent path 'META-INF/DEPENDENCIES'"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
testImplementation 'junit:junit:4.12'
implementation 'com.android.support.constraint:constraint-layout:1.0.0-beta5'
//Firebase
implementation 'com.google.firebase:firebase-core:10.0.1'
implementation 'com.google.firebase:firebase-auth:10.0.1'
implementation 'com.google.firebase:firebase-database:10.0.1'
// HTTP library (for Mailgun)
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.braintreepayments.api:drop-in:3.+'
implementation 'com.braintreepayments:card-form:3.1.1'
implementation 'com.loopj.android:android-async-http:1.4.9'
}
// Firebase
применить плагин: 'com.google.gms.google-services'