flutter_paystack icon indicating copy to clipboard operation
flutter_paystack copied to clipboard

Execution failed for task ':flutter_paystack:verifyReleaseResources'.

Open anunobik opened this issue 3 years ago • 9 comments

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.

  • 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\hp.gradle\caches\transforms-3\318f84c3102f7fba621dab604f5edeb7\transformed\material-1.8.0-alpha01\res\values-v31\values-v31.xml:3:5-94: AAPT: error: resource andro id:color/system_neutral1_1000 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

anunobik avatar Sep 27 '22 18:09 anunobik

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

s01zx avatar Sep 29 '22 19:09 s01zx

Am having a similar issue here any remedy yet ?

Apkboi avatar Sep 30 '22 03:09 Apkboi

I'm having same error.

festy691 avatar Sep 30 '22 19:09 festy691

Hey, I'm also facing the same issue.

siddhantsatpute avatar Oct 02 '22 21:10 siddhantsatpute

i am also facing the same issue

abdullahwaheed12 avatar Oct 04 '22 08:10 abdullahwaheed12

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

siddhantsatpute avatar Oct 04 '22 09:10 siddhantsatpute

Hi guys, this SA answer should help.

wilburx9 avatar Oct 04 '22 10:10 wilburx9

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

ikennaumeh avatar Oct 04 '22 16:10 ikennaumeh

Hi guys, this SA answer should help.

doesn't fix the issue

s01zx avatar Oct 05 '22 14:10 s01zx

its not working please @wilburt resolved ASAP

atulproject99 avatar Oct 12 '22 12:10 atulproject99

Has anyone gotten a fix for this yet?

maykhid avatar Oct 13 '22 19:10 maykhid

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.

siddhantsatpute avatar Oct 13 '22 21:10 siddhantsatpute

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.

maykhid avatar Oct 14 '22 02:10 maykhid

@maykhid which flutter version you used?

atulproject99 avatar Oct 14 '22 04:10 atulproject99

@maykhid which flutter version you used?

Flutter version 3.3.2

maykhid avatar Oct 14 '22 06:10 maykhid

Hello. I have same issue.

ToraSamaDev avatar Oct 19 '22 18:10 ToraSamaDev

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.

  • What went wrong: Execution failed for task ':app:checkReleaseAarMetadata'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction One or more issues found when checking AAR metadata values:

 Dependency 'androidx.appcompat:appcompat-resources:1.5.0' requires 'compileSdkVersion' to be set to 32 or higher.
 Compilation target for module ':app' is 'android-31'

 Dependency 'androidx.appcompat:appcompat:1.5.0' requires 'compileSdkVersion' to be set to 32 or higher.
 Compilation target for module ':app' is 'android-31'

 Dependency 'androidx.emoji2:emoji2-views-helper:1.2.0' requires 'compileSdkVersion' to be set to 32 or higher.
 Compilation target for module ':app' is 'android-31'

 Dependency 'androidx.emoji2:emoji2:1.2.0' requires 'compileSdkVersion' to be set to 32 or higher.
 Compilation target for module ':app' is 'android-31'
  • 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 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 avatar Oct 19 '22 18:10 KTiger1106

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.

KTiger1106 avatar Oct 20 '22 17:10 KTiger1106

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

maykhid avatar Oct 20 '22 17:10 maykhid

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 avatar Oct 20 '22 18:10 KTiger1106

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

KTiger1106 avatar Oct 20 '22 18:10 KTiger1106

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

You welcome.

maykhid avatar Oct 20 '22 18:10 maykhid

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 avatar Dec 01 '22 16:12 Emmakade

Got this error today while trying to build apk

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.

Emmakade avatar Dec 01 '22 16:12 Emmakade

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

zamirszn avatar Dec 04 '22 22:12 zamirszn

@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)

zamirszn avatar Dec 05 '22 07:12 zamirszn

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

Emmakade avatar Dec 05 '22 10:12 Emmakade

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 avatar Dec 18 '22 15:12 Emmakade

@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.

Emmakade avatar Dec 18 '22 16:12 Emmakade

@Emmakade. Did you try this solution as stated?

maykhid avatar Dec 18 '22 16:12 maykhid