[Bug] "Configure project :barcode_scan2" very slow
boldt opened this issue · 0 comments
boldt commented
Describe the bug
A fresh build of an app using this plugin slows down the build process.
To Reproduce
Bulding an app using this plugin. Run flutter build apk -v
. See the logs:
[+27907 ms] > Configure project :barcode_scan2
[ ] The com.google.protobuf plugin was already applied to the project: :barcode_scan2 and will not be applied again after plugin: android-library
[ +686 ms] WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'.
[ ] It will be removed at the end of 2019.
[ ] For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
[ ] To determine what is calling variant.getJavaCompile(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
[+63098 ms] Checking the license for package Android SDK Build-Tools 28.0.3 in /opt/android-sdk-linux/licenses
As you can see, the Configure project :barcode_scan2
needs 63s. (20% of the whole build time)
Expected behavior
The Configure project :barcode_scan2
should be faster, since it slows down the app build drastically.
Screenshots
See To Reproduce
Logs
See To Reproduce
Environment (please complete the following information):
- gitlab-runner with image
cirrusci/flutter:2.2.2
barcode_scan2: ^4.1.3
- flutter: 2.2.2
Additional context
n/a