I have to test something on my app. I do want create another apk with the same project but i have to install both, the latest and the old one. How can i possible to do this without creating a new prject? thanks
Asked
Active
Viewed 1,539 times
2 Answers
6
You can do it with a buildType. Something like:
buildTypes {
debug {
applicationIdSuffix ".debug"
}
}
Or you can do it with a flavor
productFlavors {
f1 {
applicationId = "com.example.my.pkg.f1"
}
f2 {
applicationId = "com.example.my.pkg.f2"
}
}

Gabriele Mariotti
- 320,139
- 94
- 887
- 841
-
Thank you, you saved my night. – Mark Gallos Mar 06 '16 at 14:00
-
@MarkGallos mark the answer if it soves your issue. It can help other users. – Gabriele Mariotti Mar 06 '16 at 18:53
-3
see this link
https://stackoverflow.com/a/18329481/5649082
according to this link
- copy your project to another directory and rename folder
- open it in android studio
- right click on package name and refactor -> rename
- (optional) change app name in res-> values and in build.gradle -> defaultConfig -> applicationId