


You can see build variant tab on left corner or hover on "Monitor" Symbol on left bottom to get build variant option. It set set default build variant to be "debug". On Opening the project it"ll ask add module (app) to your project. Just need to cut ".idea" Folder and paste it outside Project root folder( For Back up if you need).These files will be auto regenerated. idea folder under your project root directory and restart your Android Studio. Will automatically help select the correct build variant.ĭelete the. Just using implementation project ( ':library') You don't need to explicitly specify the build variant for a "module project". Just change it to below: releaseCompile project( path: ':module_a', configuration: 'release')ĭebugCompile project( path: ':module_a', configuration: 'debug') It may because that you compile your dependent project using: compile project ( 'module_a')Ībove setting will force your project to compile the release version of your modules. Maybe you have got your solution to this, just in case, i provide my solution here.

I noticed a 'Build Variants' toggle button on the bottom left of Android Studio (v 3.1.2) and with this was finally able to choose the variant I needed. 'Sync project with Gradle files' didn't fix. I had a similar problem where most of the Build menu items were greyed out. Tags : android,android-studio,android-gradle-plugin I've tried to revert all changes in adle as it was before configuring, but with no luck. ProguardFiles getDefaultProguardFile( 'proguard-android.txt'), 'proguard-rules.pro' TestInstrumentationRunner ".AndroidJUnitRunner"ĪbiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' TargetSdkVersion rootProject.targetSdkVersion apply plugin: ''Īpply plugin: 'kotlin-android-extensions'ĬompileSdkVersion pileSdkVersionīuildToolsVersion rootProject.buildToolsVersion So I'm not able to run my app in debug mode any more. Now when I try to check the debug build variant from the drop down menu it switches immediately back to the release build variant. I've switched to release build variant and configured signingConfigs.
