I am using 2 product flavors. Gradle code is:
productFlavors {
    app1 {
        applicationId "com.xxx.app1"
    }
    app2 {
        applicationId "com.xxx.yyy.app2"
        versionCode 2
        versionName "1.0.1"
    }
}
and it is giving INSTALL_FAILED_CONFLICTING_PROVIDER error.
It was working before, and I could submit the app to Google Play
How can I solve that?
UPDATE: When I deleted app1 from device, I could install app2.
 
    