首页 > 解决方案 > 使用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.+'
}
**

标签: androidpaypalbraintreebraintree-sandboxbraintree-data

解决方案


compileSdkVersion 27 到 28 和 targetSdkVersion 27 到 28


推荐阅读