phonex34 / flutter_kgo_vnpay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lỗi khi build release

vuldk94 opened this issue · comments

Mình gặp lỗi này khi build release khi dùng lib

Execution failed for task ':flutter_kgo_vnpay:bundleReleaseLocalLintAar'.

Error while evaluating property 'hasLocalAarDeps' of task ':flutter_kgo_vnpay:bundleReleaseLocalLintAar'
Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :flutter_kgo_vnpay project caused this error: /Users/xxxx/.pub-cache/hosted/pub.dev/flutter_kgo_vnpay-0.0.2+3/android/libs/merchant-1.0.25.aar

Đã fix bằng cách thêm vào build.gradle ở app level đoạn mã sau

lintOptions {
    checkReleaseBuilds false
}

Thanks

Đã fix bằng cách thêm vào build.gradle ở app level đoạn mã sau

lintOptions {
checkReleaseBuilds false
}
Thanks