简体   繁体   English

Android:找不到方法glt.a所引用的类'com.google.android.gms.location.internal.ParcelableGeofence

[英]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.

相关问题 找不到类&#39;com.google.android.gms.location.internal.ParcelableGeofence&#39;,从方法glt.a引用 - Could not find class 'com.google.android.gms.location.internal.ParcelableGeofence', referenced from method glt.a 找不到方法glt.a引用的类&#39;com.google.android.gms.location.internal.ParcelableGeofence - Could not find class 'com.google.android.gms.location.internal.ParcelableGeofence referenced from method glt.a 找不到方法gls.a引用的类“ com.google.android.gms.location.internal.ParcelableGeofence” - Could not find class 'com.google.android.gms.location.internal.ParcelableGeofence', referenced from method gls.a 找不到类&#39;com.google.android.gms.location.internal.ParcelableGeofence - Could not find class 'com.google.android.gms.location.internal.ParcelableGeofence ClassNotFoundException:带有Maps APIv2的com.google.android.gms.location.internal.ParcelableGeofence - ClassNotFoundException: com.google.android.gms.location.internal.ParcelableGeofence with Maps APIv2 找不到方法com.xxx.xxx.MainActivity.onCreate引用的类“ com.google.android.gms.ads.AdView” - Could not find class 'com.google.android.gms.ads.AdView', referenced from method com.xxx.xxx.MainActivity.onCreate 获取错误:无法找到类com.google.android.gms.common.GooglePlayServicesUtil.zza引用的类&#39;android.app.AppOpsManager&#39; - Getting error: Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza 找不到方法com.google.android.gms.common.kf.a引用的类“ android.app.AppOpsManager” - Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.kf.a 找不到类&#39;android.app.AppOpsManager&#39;,引自com.google.android.gms.common.GooglePlayServicesUtil.zza方法 - Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza com.google.android.gms.internal.zzhu:找不到引用的类android.security.NetworkSecurityPolicy - com.google.android.gms.internal.zzhu: can't find referenced class android.security.NetworkSecurityPolicy
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM