Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

flutter build apk --split-per-abi errors. Apk cannot be build #245

Open
iqfareez opened this issue Sep 1, 2024 · 0 comments
Open

flutter build apk --split-per-abi errors. Apk cannot be build #245

iqfareez opened this issue Sep 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@iqfareez
Copy link
Member

iqfareez commented Sep 1, 2024

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.

@iqfareez iqfareez added the bug Something isn't working label Sep 1, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant