[英]Android: Could not find class 'com.google.android.gms.location.internal.ParcelableGeofence referenced from method glt.a
Google Maps API was working fine until recently. 直到最近,Google Maps API仍能正常工作。 I assume the issue stems from a google play services update. 我认为该问题源于Google Play服务更新。 Looked through similar questions on stackoverflow, but there does not seem to be a working solution yet. 通过关于stackoverflow的类似问题进行了考察,但是似乎还没有一个可行的解决方案。
Here is the logcat with the error I get from Google Maps API: 这是我从Google Maps API收到错误的logcat:
08-19 16:28:37.746: E/dalvikvm(4868): Could not find class 'gpq', referenced from method gpr.a
08-19 16:28:37.746: E/dalvikvm(4868): Could not find class 'gpq', referenced from method gpr.a
08-19 16:28:37.746: E/dalvikvm(4868): Could not find class 'gpq', referenced from method gpr.a
08-19 16:28:38.016: E/dalvikvm(4868): Could not find class 'com.google.android.gms.location.internal.ParcelableGeofence', referenced from method gls.a
In my layout, I am referencing Google Maps as follows: 在我的布局中,我引用的Google地图如下:
<fragment
android:id="@+id/map"
android:name="com.google.android.gms.maps.MapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
In my activity, I get the map with this code: 在我的活动中,我使用以下代码获取地图:
mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();
The markers and lines I am drawing on the map are showing up, but the map itself does not seem to be loading. 我在地图上绘制的标记和线条正在显示,但地图本身似乎未加载。 As a result, I end up with markers, lines, and a Google maps grid with no map. 结果,我最终得到了标记,线条和没有地图的Google地图网格。
I do not think this error is related to the map not showing up. 我认为此错误与未显示地图有关。 I have the same error reported in LogCat and my map is displayed as expected. 我在LogCat中报告了相同的错误,并且地图按预期显示。 I have not verified this, but I suspect the issue is also related to missing Geofence classes. 我尚未对此进行验证,但我怀疑该问题还与缺少Geofence类有关。 I also get the error using sdk API 19: 使用sdk API 19也会出现错误:
Could not find class 'com.google.android.gms.location.internal.ParcelableGeofence' referenced from method gls.a
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.