Closed javidnoutash closed 4 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
@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
I have temporary solved the issue by adding checkReleaseBuilds false
to
lintOptions {
disable 'InvalidPackage'
checkReleaseBuilds false // temporary
}
In app/build.gradle
@javidnoutash Do you have any information to explain the problem you are having?