mintware-de / flutter_barcode_reader

A flutter plugin for reading 2D barcodes and QR codes.
MIT License
628 stars 462 forks source link

Cannot build after updating to Android Studio 3.2 #50

Closed javidnoutash closed 4 years ago

JamesMcIntosh commented 5 years ago

@javidnoutash Do you have any information to explain the problem you are having?

javidnoutash commented 5 years ago

Everything works fine when I run the app in debug mode, however, the build fails if I run the app in release mode.


[   +8 ms] * What went wrong:
[        ] Execution failed for task ':app:lintVitalRelease'.
[        ] > Could not resolve all artifacts for configuration ':app:dynamicProfileRuntimeClasspath'.
[        ]    > Could not resolve project :barcode_scan.
[        ]      Required by:
[        ]          project :app
[        ]       > java.lang.NullPointerException (no error message)
[        ] * 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 1m 14s
JamesMcIntosh commented 5 years ago

@javidnoutash Do what the error message says and run the gradlew command with the --scan option to get more information on the source of the problem

javidnoutash commented 5 years ago

I have temporary solved the issue by adding checkReleaseBuilds false to

    lintOptions {
        disable 'InvalidPackage'
        checkReleaseBuilds false // temporary
    }

In app/build.gradle