避免硬编码调试模式;警告:在Android清单清单、模式、Android

2023-09-05 10:42:02 作者:借酒消愁

更新我的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