paystack-android: SDK doesn't sync in project

I included the library in my build.gradle file and my project has since stopped syncing. This is the error I get

Error:/xxx/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:473 resource android:attr/foregroundInsidePadding is private

Error:java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.AaptException: AAPT2 link failed:

Error:com.android.builder.internal.aapt.AaptException: AAPT2 link failed:

Error:Execution failed for task ':app:processDebugResources'.
> Failed to execute aapt

When I remove the compile line, my project syncs up fine again.

This is how my build looks like:

compileSdkVersion 25
buildToolsVersion "25.0.2"
minSdkVersion 21
targetSdkVersion 25

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 28 (8 by maintainers)

Commits related to this issue

Most upvoted comments

@verygreenboi @wilburt @ighotouch fixed now that gradle:3.0 has been released as stable. Thank you for choosing Paystack 👍

It finally worked thanks

I have a feeling that this have something to do with your IDE config. Please check your Gradle settings, make sure you’re not building offline. Settings > Build, Execution... > Gradle and uncheck Offline work. Then clean your project and rebuild again. If the error persists, copy the Error message you got and paste it here.

Once we have a stable version for gradle:3.0 , we will make it fully compatible.