How to have both Debug and Release apk on same device?

后端 未结 1 1545
悲哀的现实
悲哀的现实 2021-02-12 04:20

While continuing to develop my application and test it on a real phone, I need to have the release version of it on the same phone, for demonstration purposes (

1条回答
  •  南方客
    南方客 (楼主)
    2021-02-12 04:43

    You may want to try this technique using ant, Jenkins and perhaps other tools to automate package renames as suggested by @LAS_VEGAS.

    Although not what you asked for, this cool code snippet can help you find out at runtime whether your code is debug or release.

    Another interesting such attempt can be found in this thread. I am not sure though if it works on Android.

    0 讨论(0)
提交回复
热议问题