【发布时间】:2019-05-04 09:55:08
【问题描述】:
我目前正在将 Braintree 集成到我们的项目中。但在开始时,我将在我们的项目文件中使用 Braintree SDK 显示 Android 资源链接错误。 错误:找不到资源 android:attr/fontVariationSettings。 错误:找不到资源 android:attr/ttcIndex。 错误:链接引用失败。
请告诉我如何解决这个问题。别忘了分享你的答案
**apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.example.cz.paypal_intergration"
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.paypal.sdk:paypal-android-sdk:2.14.2'
implementation 'com.braintreepayments.api:braintree:2.+'
}
**
【问题讨论】:
-
添加您的应用级 gradle 文件。
-
您可以编辑问题并将其粘贴到那里!
-
@PareshP 在此处更新问题,请检查并分享您的经验
标签: android paypal braintree braintree-sandbox braintree-data