避免硬编码调试模式;警告:在Android清单 [英] Avoid hardcoding the debug mode; Warning in Android Manifest

查看:725
本文介绍了避免硬编码调试模式;警告:在Android清单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新我的ADT插件到版本17,我得到一个警告,按摩后说:

After updating my ADT plugin to version 17 I'm getting a warning massage saying

避免硬编码调试模式;离开它允许调试和发布版本自动分配一个

Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one

有没有更新之前,这样的消息。

There wasn't such message before the update.

我怎样才能避免这种警告信息?

How can I avoid this warning message ?

推荐答案

是啊,只注意到这一点。我删除从清单中的可调试属性,我现在可以既在调试模式下运行应用程序并将其导出到一个市场就绪APK文件,而无需改变任何code。

Yup, just noticed this too. I removed the debuggable attribute from the manifest, and I can now both run the app in debug mode and export it to a market-ready APK file without changing any code.

光滑!

完整解释 http://stackoverflow.com/a/4580630/682754

这篇关于避免硬编码调试模式;警告:在Android清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆