Closed han1548772930 closed 1 year ago
I downloaded DynamsoftBarcodeReader. aar, but where should I put it and how to reference it
@han1548772930 I think your issue is caused by network connection. To use the local *.aar
file, you can create a libs
folder under https://github.com/yushulx/flutter_barcode_sdk/tree/main/android directory, and then copy your aar files into the folder. After that, configure the build.gradle
file as follows:
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
implementation(name: 'name-of-your-aar-file', ext: 'aar')
}
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':flutter_barcode_sdk:generateReleaseRFile'.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 19s Running Gradle task 'assembleRelease'... 19.9s [!] Gradle threw an error while downloading artifacts from the network. Retrying Gradle Build: #5, wait time: 1600ms