wilburx9 / flutter_paystack

:credit_card: A robust Flutter plugin for making payments via Paystack Payment Gateway. Completely supports Android and iOS
https://pub.dartlang.org/packages/flutter_paystack
Apache License 2.0
206 stars 358 forks source link

Execution failed for task ':flutter_paystack:verifyReleaseResources'. #135

Closed anunobik closed 1 year ago

anunobik commented 1 year ago

Kindly assist with below issues when trying to build apk which was successful before adding the flutter_paystack dependency:

FAILURE: Build failed with an exception.

s01zx commented 1 year ago

debug mode works...but building an apk fails. Kindly look into it.

Apkboi commented 1 year ago

Am having a similar issue here any remedy yet ?

festy691 commented 1 year ago

I'm having same error.

siddhantsatpute commented 1 year ago

Hey, I'm also facing the same issue.

abdullahwaheed12 commented 1 year ago

i am also facing the same issue

siddhantsatpute commented 1 year ago

@wilburt please look into this issue, as this is very critical and we are not able to create the release APK.

wilburx9 commented 1 year ago

Hi guys, this SA answer should help.

ikennaumeh commented 1 year ago

@wilburt upgrading compileSdk to 31 doesnt solve it for me. I get this error:

Execution failed for task ':app:mergeDebugResources'.

C:\Users\Admin.gradle\caches\transforms-2\files-2.1\77b68729ea526f815d693f3fc7055a57\material-1.8.0-alpha01\res\values\values.xml: Error: Can't determine type for tag '?attr/colorSurface'

s01zx commented 1 year ago

Hi guys, this SA answer should help.

doesn't fix the issue

atulproject99 commented 1 year ago

its not working please @wilburt resolved ASAP

maykhid commented 1 year ago

Has anyone gotten a fix for this yet?

siddhantsatpute commented 1 year ago

Hi guys, I found this solution for implementing the paystack payment gateway for flutter through webview in PayStack's official documentation. I haven't tried this solution, but going to try this in the coming days.

maykhid commented 1 year ago

I managed to solve this on my end. What I did:

Open the Project using android studio -> Access the Project folder -> Access External Libraries -> Access Flutter Plugins -> Access flutter_paystack-{your-version} -> Open build.gradle, change compileSdkVersion to 31. Do a flutter clean, then flutter pub get, run flutter build apk --release.

The compileSdkVersion for flutter_paystack was formerly 28 before I changed it, I'm guessing the plugin needs an upgrade to its compileSdkVersion.

atulproject99 commented 1 year ago

@maykhid which flutter version you used?

maykhid commented 1 year ago

@maykhid which flutter version you used?

Flutter version 3.3.2

ToraSamaDev commented 1 year ago

Hello. I have same issue.

KTiger1106 commented 1 year ago

Hello. I have created new project. And I have added a package : flutter_paystack only. And when I build apk, i have gotten error

`FAILURE: Build failed with an exception.

BUILD FAILED in 3s Running Gradle task 'assembleRelease'... 4.9s Gradle task assembleRelease failed with exit code 1`

My flutter version is 3.3.4 Android Studio version is 4.2 JDK version is 11

Please fix this issue. I have to develop an app using paystack. Thank you.

KTiger1106 commented 1 year ago

Hello. This package is working when I run using "flutter run" But when I run "flutter build apk", I cannot build apk.

` Note: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\libphonenumber-2.0.2\android\src\main\java\com\codeheadlabs\libphonenumber\LibphonenumberPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath: C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.6.10/e80fe6ac3c3573a80305f5ec43f86b829e8ab53d/kotlin-stdlib-jdk8-1.6.10.jar (version 1.6) C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.6.10/e1c380673654a089c4f0c9f83d0ddfdc1efdb498/kotlin-stdlib-jdk7-1.6.10.jar (version 1.6) C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.7.10/d2abf9e77736acc4450dc4a3f707fa2c10f5099d/kotlin-stdlib-1.7.10.jar (version 1.7) C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.7.10/bac80c520d0a9e3f3673bc2658c6ed02ef45a76a/kotlin-stdlib-common-1.7.10.jar (version 1.7) w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath e: C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.7.10/d2abf9e77736acc4450dc4a3f707fa2c10f5099d/kotlin-stdlib-1.7.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1. e: C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.7.10/bac80c520d0a9e3f3673bc2658c6ed02ef45a76a/kotlin-stdlib-common-1.7.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1. w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath: C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.6.10/e80fe6ac3c3573a80305f5ec43f86b829e8ab53d/kotlin-stdlib-jdk8-1.6.10.jar (version 1.6) C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.6.10/e1c380673654a089c4f0c9f83d0ddfdc1efdb498/kotlin-stdlib-jdk7-1.6.10.jar (version 1.6) C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.7.10/d2abf9e77736acc4450dc4a3f707fa2c10f5099d/kotlin-stdlib-1.7.10.jar (version 1.7) C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.7.10/bac80c520d0a9e3f3673bc2658c6ed02ef45a76a/kotlin-stdlib-common-1.7.10.jar (version 1.7) w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath

FAILURE: Build failed with an exception.

BUILD FAILED in 2m 17s Running Gradle task 'assembleRelease'... 138.1s

┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │
│ Find the latest version on https://kotlinlang.org/docs/gradle.html#plugin-and-versions, then update F:\UpayChat\upaychat\android\build.gradle: │
│ ext.kotlin_version = '' │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Gradle task assembleRelease failed with exit code 1`

I have installed latest Kotlin and flutter versions. Please let me know how can I fix this issue. I have to publish my app to google play asap. Thank you.

maykhid commented 1 year ago

Hello. This package is working when I run using "flutter run" But when I run "flutter build apk", I cannot build apk.

` Note: F:\Android\flutter.pub-cache\hosted\pub.dartlang.org\libphonenumber-2.0.2\android\src\main\java\com\codeheadlabs\libphonenumber\LibphonenumberPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath: C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.6.10/e80fe6ac3c3573a80305f5ec43f86b829e8ab53d/kotlin-stdlib-jdk8-1.6.10.jar (version 1.6) C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.6.10/e1c380673654a089c4f0c9f83d0ddfdc1efdb498/kotlin-stdlib-jdk7-1.6.10.jar (version 1.6) C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.7.10/d2abf9e77736acc4450dc4a3f707fa2c10f5099d/kotlin-stdlib-1.7.10.jar (version 1.7) C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.7.10/bac80c520d0a9e3f3673bc2658c6ed02ef45a76a/kotlin-stdlib-common-1.7.10.jar (version 1.7) w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath e: C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.7.10/d2abf9e77736acc4450dc4a3f707fa2c10f5099d/kotlin-stdlib-1.7.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1. e: C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.7.10/bac80c520d0a9e3f3673bc2658c6ed02ef45a76a/kotlin-stdlib-common-1.7.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1. w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath: C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.6.10/e80fe6ac3c3573a80305f5ec43f86b829e8ab53d/kotlin-stdlib-jdk8-1.6.10.jar (version 1.6) C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.6.10/e1c380673654a089c4f0c9f83d0ddfdc1efdb498/kotlin-stdlib-jdk7-1.6.10.jar (version 1.6) C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.7.10/d2abf9e77736acc4450dc4a3f707fa2c10f5099d/kotlin-stdlib-1.7.10.jar (version 1.7) C:/Users/Administrator/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.7.10/bac80c520d0a9e3f3673bc2658c6ed02ef45a76a/kotlin-stdlib-common-1.7.10.jar (version 1.7) w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':flutter_paystack:verifyReleaseResources'.

    A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action Android resource linking failed ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:3:5-94: AAPT: error: resource android:color/system_neutral1_1000 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:4:5-94: AAPT: error: resource android:color/system_neutral1_900 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:5:5-93: AAPT: error: resource android:color/system_neutral1_0 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:6:5-94: AAPT: error: resource android:color/system_neutral1_800 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:7:5-94: AAPT: error: resource android:color/system_neutral1_700 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:8:5-94: AAPT: error: resource android:color/system_neutral1_600 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:9:5-94: AAPT: error: resource android:color/system_neutral1_500 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:10:5-94: AAPT: error: resource android:color/system_neutral1_400 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:11:5-94: AAPT: error: resource android:color/system_neutral1_300 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:12:5-94: AAPT: error: resource android:color/system_neutral1_200 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:13:5-94: AAPT: error: resource android:color/system_neutral1_100 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:14:5-93: AAPT: error: resource android:color/system_neutral1_50 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:15:5-93: AAPT: error: resource android:color/system_neutral1_10 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:16:5-102: AAPT: error: resource android:color/system_neutral2_1000 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:17:5-102: AAPT: error: resource android:color/system_neutral2_900 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:18:5-101: AAPT: error: resource android:color/system_neutral2_0 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:19:5-102: AAPT: error: resource android:color/system_neutral2_800 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:20:5-102: AAPT: error: resource android:color/system_neutral2_700 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:21:5-102: AAPT: error: resource android:color/system_neutral2_600 not found.

    ERROR:C:\Users\Administrator.gradle\caches\transforms-3\4f5a90093531dac5efcf7ba7a6ddd00f\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:22:5-102: AAPT: error: resource android:color/system_neutral2_500 not found.

  • Try:

    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 2m 17s Running Gradle task 'assembleRelease'... 138.1s

┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │
│ Find the latest version on https://kotlinlang.org/docs/gradle.html#plugin-and-versions, then update F:\UpayChat\upaychat\android\build.gradle: │
│ ext.kotlin_version = '' │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Gradle task assembleRelease failed with exit code 1`

I have installed latest Kotlin and flutter versions. Please let me know how can I fix this issue. I have to publish my app to google play asap. Thank you.

Had this exact same issue earlier. You could try what I did to build my own release APK here: https://github.com/wilburt/flutter_paystack/issues/135#issuecomment-1278388346

KTiger1106 commented 1 year ago

I cannot downgrade compiled sdk version to 31 because I am using firebase that allowed on sdk version 33. Do you have solution to make working on sdk 33?

KTiger1106 commented 1 year ago

Thank you, I could build apk in release mode. I have changed gradle file in flutter cache folder.

maykhid commented 1 year ago

Thank you, I could build apk in release mode. I have changed gradle file in flutter cache folder.

You welcome.

Emmakade commented 1 year ago

I cannot downgrade compiled sdk version to 31 because I am using firebase that allowed on sdk version 33. Do you have solution to make working on sdk 33?

To solve the problem, i can't downgrade compiled sdk to 31 because i am using webview plugin on sdk 32 minimum

Emmakade commented 1 year ago

Got this error today while trying to build apk

FAILURE: Build failed with an exception.

zamirszn commented 1 year ago

@Emmakade did you get to fix it ?? i have the same issue

zamirszn commented 1 year ago

@Emmakade i used @maykhid solution and it worked , go to your direct dependencies folder in vscode , change compileSdkVersion from 28 to 31 in paystack_flutter build.gradle file

Screenshot (82)

Emmakade commented 1 year ago

Not yet, I have WebView plugin that required compilesdk 32 as minimum

Emmakade commented 1 year ago

Thank you, I could build apk in release mode. I have changed gradle file in flutter cache folder.

how do i do that, I'm still having issue on this

Emmakade commented 1 year ago

@Emmakade i used @maykhid solution and it worked , go to your direct dependencies folder in vscode , change compileSdkVersion from 28 to 31 in paystack_flutter build.gradle file

Screenshot (82)

Hello sir, Good day to you, Thanks for your concerned. Please i will like to know the flutter version and the version of flutter_paystack plugin you used, that will help me more. I will appreciate your swift response.

maykhid commented 1 year ago

@Emmakade. Did you try this solution as stated?

maykhid commented 1 year ago

@maykhid Yes, I have done that, I got the error below

e: C:/Users/dmast/Documents/Flutter/ospoly/build/flutter_paystack/.transforms/b8ce49f4c5b799e0b1cee2ad7e1769ec/transformed/out/jars/classes.jar!/META-INF/flutter_paystack_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1. e: C:/Users/dmast/Documents/Flutter/ospoly/build/webcontent_converter/.transforms/378da70a581f5a04aa639c951cc4f96e/transformed/out/jars/classes.jar!/META-INF/webcontent_converter_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1. e: C:/Users/dmast/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.7.22/b75c999616784d452613d670fec56a527f2bd3d1/kotlin-stdlib-jdk8-1.7.22.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1. e: C:/Users/dmast/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.7.22/6aa0a0e051d6b828dc25047025ec245758fab6d9/kotlin-stdlib-jdk7-1.7.22.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1. e: C:/Users/dmast/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.7.22/9fb43bccb6cf8cfaaf3776c75f5df4f052f09b72/kotlin-stdlib-1.7.22.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1. e: C:/Users/dmast/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.7.22/5dd2c9dcf64c94b46cf4bdb6fa4035b9bb726e2e/kotlin-stdlib-common-1.7.22.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1.

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':flutter_paystack:verifyReleaseResources'.

    A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action Android resource linking failed ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:3:5-94: AAPT: error: resource android:color/system_neutral1_1000 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:4:5-94: AAPT: error: resource android:color/system_neutral1_900 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:5:5-93: AAPT: error: resource android:color/system_neutral1_0 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:6:5-94: AAPT: error: resource android:color/system_neutral1_800 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:7:5-94: AAPT: error: resource android:color/system_neutral1_700 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:8:5-94: AAPT: error: resource android:color/system_neutral1_600 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:9:5-94: AAPT: error: resource android:color/system_neutral1_500 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:10:5-94: AAPT: error: resource android:color/system_neutral1_400 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:11:5-94: AAPT: error: resource android:color/system_neutral1_300 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:12:5-94: AAPT: error: resource android:color/system_neutral1_200 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:13:5-94: AAPT: error: resource android:color/system_neutral1_100 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:14:5-93: AAPT: error: resource android:color/system_neutral1_50 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:15:5-93: AAPT: error: resource android:color/system_neutral1_10 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:16:5-102: AAPT: error: resource android:color/system_neutral2_1000 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:17:5-102: AAPT: error: resource android:color/system_neutral2_900 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:18:5-101: AAPT: error: resource android:color/system_neutral2_0 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:19:5-102: AAPT: error: resource android:color/system_neutral2_800 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:20:5-102: AAPT: error: resource android:color/system_neutral2_700 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:21:5-102: AAPT: error: resource android:color/system_neutral2_600 not found.

    ERROR:C:\Users\dmast.gradle\caches\transforms-3\1a2eef0db72733ebb5c5d600394f11e4\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:22:5-102: AAPT: error: resource android:color/system_neutral2_500 not found.

Hmmm... Can you verify that you didn't change your app compikeSdkVersion but the compikeSdkVersion for flutter-paystack dependency. If you're certain can you take a screenshot of the flutter-paystack cache build.gradle you changed So I can see?

maykhid commented 1 year ago

@Emmakade Are you using VScode or Android studio?

Emmakade commented 1 year ago

@Emmakade Are you using VScode or Android studio?

vscode sir

maykhid commented 1 year ago

@Emmakade Okay so on your vscode explorer go to Dependencies -> flutter_paystack -> android -> build.gradle, then change compikeSdkVersion to 31

Depending on your case you might find flutter_paystack under direct dependencies inside Dependencies folder in your explorer.

Emmakade commented 1 year ago

@Emmakade. Did you try this solution as stated?

Thank you very much, this is the solution that work.

funyin commented 1 year ago

this

This worked for me.

DeveloperMaleek commented 1 year ago

@maykhid, I don't have a dependency folder in my explorer, I only have the .flutter-plugin-dependencies file

maykhid commented 1 year ago

@maykhid, I don't have a dependency folder in my explorer, I only have the .flutter-plugin-dependencies file

I believe this issue has been resolved. You do not need to to use the fix I used, please just upgrade to the latest version.