android - 使用braintree库时Android资源链接失败
问题描述
我目前正在将 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.+'
}
**
解决方案
compileSdkVersion 27 到 28 和 targetSdkVersion 27 到 28
推荐阅读
- ruby-on-rails - 如何在 Simple_Form collection_radio_buttons 上使用集合的其他方法?
- c# - RichTextBox doesnt show scrollbars and text goes off limit
- javascript - 迭代对象数组以合并新对象
- java - Compose mail click not working in selenium
- php - 当我点击我的个人资料时如何恢复我随机发布的用户以在我返回php时再次显示它们
- python - 如何使用来自csv的spark中的python在地图上可视化数据?
- java - 在 Spring 上,如何使用 JPA 和复合键(分区键和排序键)查询 DynamoDB 表?
- php - 在 Laravel 中使用 if else 条件在主布局中使用外部 css 和 js 是否更好?
- javascript - 如果另一列包含目标词,则从一个表列中抓取数据
- java - 当接口中有一种方法时,如何将java中的lambda函数转换为kotlin?