The command flutter clean; flutter build apk --split-per-abi throws the following error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':auto_start_flutter:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
> Android resource linking failed
ERROR:D:\Iqmal\Documents\Flutter apps\waktusolatmalaysia\build\auto_start_flutter\intermediates\merged_res\release\values\values.xml:195: 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 4m 8s
Running Gradle task 'assembleRelease'... 250.1s
┌─ 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 │
│ D:\Iqmal\Documents\Flutter apps\waktusolatmalaysia\android\settings.gradle. │
│ │
│ Alternatively (if your project was created before Flutter 3.19), update │
│ D:\Iqmal\Documents\Flutter apps\waktusolatmalaysia\android\build.gradle │
│ ext.kotlin_version = '<latest-version>' │
└────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Gradle task assembleRelease failed with exit code 1
While flutter build appbundle completed without problems.
The command
flutter clean; flutter build apk --split-per-abi
throws the following error:While
flutter build appbundle
completed without problems.