I am trying to test an app with Build Variant in release mode in Android Studio with a project using Gradle.
build.gradle:
(omitted dependencies and
If you want to create signed version of apk then it requires release. If you don't want to, choose the debug mode and run the unsigned apk file.