Java 发布到应用商店后,PIN不会显示
在测试和调试时,我使用了我的调试API密钥,现在我转到了发布API密钥并发布了应用程序 显示地图载荷和GPS位置(表明API键正确),但未显示插脚(注释)。我还得到下面的错误:Java 发布到应用商店后,PIN不会显示,java,android,google-maps,google-maps-android-api-2,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 resou
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.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,一切似乎都很好。您正在尝试通过主线程访问网络。不要那样做,它会堵塞你的思路
请参阅:感谢您的评论,我不是故意这么做的-我如何才能阻止这种情况发生?我并没有说要使用主线程。如果你读了我发给你的链接,有各种各样的选择。您主要希望将网络交互放到一个新线程上。