Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

Cannot build after updating to Android Studio 3.2 #50

Closed
javidnoutash opened this issue Sep 25, 2018 · 4 comments
Closed

Cannot build after updating to Android Studio 3.2 #50

javidnoutash opened this issue Sep 25, 2018 · 4 comments

Comments

@javidnoutash
Copy link

No description provided.

@JamesMcIntosh
Copy link

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

@javidnoutash
Copy link
Author

javidnoutash commented Nov 21, 2018

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
Copy link

@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
Copy link
Author

I have temporary solved the issue by adding checkReleaseBuilds false to

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

In app/build.gradle

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants