调试版本 android apk 和发布非调试版本 android apk 有什么区别?

What is the difference between a debugged version android apk and a release non-debugged version android apk?

开发人员应注意哪些显着差异?

第一个是可调试的,第二个不是。

这意味着第一个将输出您所有的 Log.d 而生产版本不会。

此外,默认情况下,调试版本是在没有 ProGuard 的情况下编译的,而生产版本是使用默认的 ProGuard 规则编译的

你可以看看那些帖子

官方文档也很清楚,很有帮助 http://developer.android.com/tools/publishing/app-signing.html

提示

debug when you are working on the project

release when you are about to publish the app

祝你好运!

最重要的区别之一是应用程序的调试版本 没有 prguarded 因此可以对其进行逆向工程。它没有被保护的原因是因为您可以轻松地跟踪您的 logcat 输出而无需检查映射文件。

In debug mode, you sign your app with a debug certificate generated by the Android SDK tools. This certificate has a private key with a known password, so you can run and debug your app without typing the password every time you make a change to your project.