android“导出android包”覆盖图从地图视图签名中消失
现在,我已经完成了我的应用程序,我想将其投放市场。 (至少,我答应自己有一个功能会停止直到发布......;)
在调试模式下,应用程序就像一个魅力,它上面有一个地图视图,有一个大的覆盖层(400个项目)。
当我“导出 android 包”并在手机上尝试该应用程序时,地图可以工作,但叠加层未显示。
我已经做过/尝试过的事情;
- 获得了谷歌地图的非调试器API密钥,地图显示,只有覆盖层不会...
- 完全关闭proguard;从“default.properties”中删除 proguard 行
- 我没有错误,应用程序不会崩溃
两个问题;
1 - 其他人在“导出 android 包”时注意到过其他行为吗?如果有,那是什么? (非 proguard)
2 - 我是否以正确的方式关闭了 proguard?,因为我确实注意到“classes.dex”文件小了很多。
在给我一般提示之前,请尝试回答问题 1 和 2!
谢谢!
For Now, I'm finished with my application, and I want to put it on the market. (at least, promised myself to have a feature stop till a release... ;)
In debug mode the app words like a charm, it has a mapview on it, with a big overlay (400 items).
When I "export android package", and try the app on my phone, the map works, but the overlays are not displaying.
Things I've allready did/tried;
-got a non-debugger API key for google maps, the map displays, only the overlay's won't...
-Turned off proguard completely; remove the proguard line from 'default.properties'
-I got no errors, the app doesn't crash
Two questions;
1 - Anyone else ever noticed other behavure when 'export android package', if so, what was it? (non-proguard)
2 - Did I turn off proguard the right way?, because I did notice the 'classes.dex' file was quite a bit smaller.
Please try to answer questions 1 and 2 before giving me general hints!
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Gson 和 Proguard 造成了这个问题;
http://sourceforge.net/tracker/?func=detail&aid=3375947&group_id=54750&atid=474704
http://code.google.com/p/google-gson/source/browse/trunk/examples/android-proguard-example/proguard.cfg?r=878
(底部)
仔细想想,一切都顺理成章了……
Gson and Proguard were causing it;
http://sourceforge.net/tracker/?func=detail&aid=3375947&group_id=54750&atid=474704
http://code.google.com/p/google-gson/source/browse/trunk/examples/android-proguard-example/proguard.cfg?r=878
(bottom)
Come to think of it, it all falls into place...