Error:In <declare-styleable> ForegroundView, unable to find attribute foreground

Error:In <declare-styleable> ForegroundView, unable to find attribute foreground

我在 android studio 3 中执行 paystack3.0.9 android 代码时出现以下错误。

Error:In ForegroundView, unable to find attribute foreground

Error:In ForegroundView, unable to find attribute foregroundInsidePadding

Error:Execution failed for task ':paystack:processDebugResources'. com.android.ide.common.process.ProcessException: Failed to execute aapt

申请Gradle详情:

buildscript {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.0'
    }
}

模块 gradle 详细信息:

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.3"
    aaptOptions {
        useNewCruncher false
    }

......


dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    android {
        useLibrary 'org.apache.http.legacy'
    }

    compile 'com.flurry.android:analytics:6.3.1'
    compile 'com.braintreepayments.api:braintree:1.+'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.squareup.retrofit:retrofit:1.9.0'
    compile 'com.squareup.okhttp:okhttp:2.0.0'
    compile 'com.kbeanie:image-chooser-library:1.4.4@aar'
    compile 'com.sothree.slidinguppanel:library:3.1.1'
    compile 'com.google.code.gson:gson:2.5'
    compile 'co.paystack.android:paystack:3.0.9'
    compile 'com.android.support:support-v4:26.1.0'
    compile 'com.google.android.gms:play-services:7.0.0'
    compile 'com.android.support:appcompat-v7:26.1.0'
    compile 'com.android.support:design:26.1.0'
    compile 'com.facebook.android:facebook-android-sdk:3.19.0'
    compile 'com.android.support:multidex:1.0.0'
}

}

添加“编译'co.paystack.android:paystack:3.0.9'”后,出现上述错误。请帮我解决这个问题。

谢谢

我认为这个问题已在该回购协议的问题页面上得到解决:https://github.com/PaystackHQ/paystack-android/issues/33

values 目录中创建一个 attrs.xml 文件

<declare-styleable name="ForegroundView">
   <attr name="foreground" format="color" />
   <attr name="foregroundGravity" format="integer" />
   <attr name="foregroundInsidePadding" format="boolean" />
</declare-styleable>