Jbe*_*ell 11 linux android openstreetmap osmdroid android-studio
我试图把用户代理(参见https://github.com/osmdroid/osmdroid/wiki/Important-notes-on-using-osmdroid-in-your-app),但是当我把OpenStreetMapTileProviderConstants.setUserAgentValue(BuildConfig.APPLICATION_ID);
Android studio 告诉我认为 setUserAgentValue 已折旧。
我能做些什么来解决这个问题?现在,当我运行应用程序时,我有一个没有地图的网格。
非常感谢您提前!
它已被弃用,因为它已被移动到另一个位置,该位置整合了 osmdroid 的所有配置设置。尝试以下
Configuration.getInstance().setUserAgentValue(...)
旧方法被重写以将其连接到新的配置结构中。
归档时间: |
|
查看次数: |
2519 次 |
最近记录: |