发布到应用商店后,引脚不会显示

时间:2013-08-12 14:58:56

标签: java android google-maps google-maps-android-api-2

在测试和调试时,我使用了调试API密钥,现在我已经转移到我的发布API密钥并发布了应用程序。

显示地图加载和GPS位置(表示API密钥正确)但是没有显示引脚(注释)。我也得到以下错误:

08-12 15:50:42.315: E/GooglePlayServicesUtil(11478): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

我已经检查过了,我有这个:

enter image description here

所以我觉得一切都会好的。

也出现此错误:

08-12 15:50:42.315: E/GooglePlayServicesUtil(11478): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
08-12 15:50:42.325: E/log_tag(11478): Error in http connection android.os.NetworkOnMainThreadException
08-12 15:50:42.325: E/log_tag(11478): Error converting result java.lang.NullPointerException: lock == null
08-12 15:50:42.325: E/log_tag(11478): Error parsing data org.json.JSONException: End of input at character 0 of 

我已经尝试生成新密钥并跟踪下载的JSON,但似乎都很好。

1 个答案:

答案 0 :(得分:0)

您正尝试在主线程上访问网络。不要这样做,它会堵塞你的线程。

请参阅:How to fix android.os.NetworkOnMainThreadException?