phonex34 / flutter_kgo_vnpay

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Lỗi khi build release #1

Closed vuldk94 closed 8 months ago

vuldk94 commented 8 months ago

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

vuldk94 commented 8 months ago

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

lintOptions {
    checkReleaseBuilds false
}

Thanks

vuldk94 commented 8 months ago

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

lintOptions { checkReleaseBuilds false } Thanks