문제

Is there a way to debug my app on my smartphone without uninstall the play Store release? I want to use my app, but the debug should not edit the preferences. I would like to use two different apps. Naturally without changing a lot of code each time I want to export as release apk.

Am I asking too much?

도움이 되었습니까?

해결책 2

The solution is changing the applicationId in the app build.gradle file as suggested by the official documentation:

android {
    ...
    buildTypes {
        debug {
            applicationIdSuffix ".debug"
        }
    }
}

다른 팁

The only thing you could do is change the package name in your AndroidManifest.xml.

The preferences would not be the only problem to face: You also won't be able to install the debug version over the release version due to the different certificates.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top