错误:在 ForegroundView中,无法找到属性前景(Error:In ForegroundView, unable to find attribute foreground)

编程入门 行业动态 更新时间:2024-10-08 06:26:30
错误:在 ForegroundView中,无法找到属性前景(Error:In ForegroundView, unable to find attribute foreground)

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

错误:在ForegroundView中,无法找到属性前景

错误:在ForegroundView中,无法找到属性foregroundInsidePadding

错误:任务':paystack:processDebugResources'的执行失败。 com.android.ide.common.process.ProcessException:无法执行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' “后,我收到上述错误。 请帮我解决这个问题。

谢谢

I am the getting following errors while i execute paystack3.0.9 android code in android studio 3.

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

Application Gradle details:

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

Module gradle details:

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' }

}

After adding "compile 'co.paystack.android:paystack:3.0.9'", i am getting the above mentioned error. Please help me to fix this issue.

Thanks

最满意答案

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

I think this issue has been addressed on the issues page of that repo: https://github.com/PaystackHQ/paystack-android/issues/33

更多推荐

android,compile,'com,paystack,电脑培训,计算机培训,IT培训"/> <meta name=

本文发布于:2023-08-04 17:25:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1419211.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:属性   前景   错误   ForegroundView   Error

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!