sometimes debugging SDK must use release version, but each packaging confusion is too troublesome, I hope to be able to run out of the IDE in the release version of the application, in short, in the debug mode to produce release version of the app, what should be done? It is easy to solve this problem when we use Androidstudio's gradle.
Here is the method from: http://blog.csdn.net/h3c4lenovo/article/details/42011887, very effective!
1. We put the signature file in the project root directory (this is done to keep the path uniform)
2. Introduce the following code in Gradle:
//Configure KeyStore Signature
Signingconfigs {
Release {
storefile file ("Timehutkeystore")
Storepassword "joyful888"
Keyalias "Timehut team"
Keypassword "joyful888"
}
}
Buildtypes {
Debug {
signingconfig signingconfigs.release
}
Release {
signingconfig signingconfigs.release
}
}
This compiles the debug version directly with the official signature oh. That's great
Android Studio Debug with Release mode