When I try to flutter build apk --release I'm getting this error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':p24_sdk:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
> Android resource linking failed
ERROR:/Users/ryszardschossler/Developer/Bodyspace/flater_bs/flutter_bs_app/build/p24_sdk/intermediates/merged_res/release/values/values.xml:2646: AAPT: error: resource android:attr/lStar 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 11s
Running Gradle task 'assembleRelease'... 12,4s
┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │
│ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then update the │
│ version number of the plugin with id "org.jetbrains.kotlin.android" in the plugins block of │
│ /Users/ryszardschossler/Developer/Bodyspace/flater_bs/flutter_bs_app/android/settings.gradle. │
│ │
│ Alternatively (if your project was created before Flutter 3.19), update │
│ /Users/ryszardschossler/Developer/Bodyspace/flater_bs/flutter_bs_app/android/build.gradle │
│ ext.kotlin_version = '<latest-version>' │
└────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Gradle task assembleRelease failed with exit code 1
My settings.gradle have this plugins:
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
// START: FlutterFire Configuration
id "com.google.gms.google-services" version "4.3.15" apply false
id "com.google.firebase.crashlytics" version "2.8.1" apply false
// END: FlutterFire Configuration
id "org.jetbrains.kotlin.android" version "2.0.21" apply false
}
As you can see i updated the org.jetbrains.kotlin.android to the latest version and this error still appears.
I did come back to this project after a while i updated the pubspec and when i try to build or run app in release mode i got this error above, when i run this project in debug it works.
When I try to
flutter build apk --release
I'm getting this error:My settings.gradle have this plugins:
As you can see i updated the org.jetbrains.kotlin.android to the latest version and this error still appears.
I did come back to this project after a while i updated the pubspec and when i try to build or run app in release mode i got this error above, when i run this project in debug it works.
My flutter conf: