简体   繁体   English

找不到方法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

Before I begin I have tried every solution offered under similar questions posted on stackoverflow as well as other forums to no avail: 在我开始之前,我尝试过在stackoverflow以及其他论坛上发布的类似问题下提供的所有解决方案,但均无济于事:

I have the following code to render maps...It worked for a few days then outright stopped working. 我有以下代码来渲染地图...它工作了几天,然后彻底停止工作。 I have changed the API keys but also nothing. 我已经更改了API密钥,但也没有任何更改。

public class The_Map_Fragment extends SherlockFragment  {
..........
..........
if (googleMap == null) {
        googleMap = ((SupportMapFragment)getFragmentManager().findFragmentById(R.id.map)).getMap();

        googleMap.setMyLocationEnabled(true); 
        googleMap.getUiSettings().setZoomControlsEnabled(true);
        googleMap.getUiSettings().setZoomGesturesEnabled(true);
        googleMap.getUiSettings().setMyLocationButtonEnabled(true);
        CameraPosition cameraPosition = new CameraPosition.Builder().target(new LatLng(-1.281509, 36.816974)).zoom(13).build();
        googleMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition)); 
        if (googleMap == null) {
            Toast.makeText(getActivity(),"Sorry! unable to Instatntiate Google Maps", Toast.LENGTH_SHORT).show();


        }


    }

My xml is as below: 我的xml如下:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

<fragment
    android:id="@+id/map"
    android:name="com.google.android.gms.maps.SupportMapFragment"
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>

My Manifest has all refrences and permissions ok 我的清单具有所有引用和权限,可以

<permission android:name="com.the.app.rr.permission.MAPS_RECEIVE"  
    android:protectionLevel="signature" />
<uses-permission android:name="com.the.app.rr.permission.MAPS_RECEIVE" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<!-- Required to show current location -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

<uses-feature android:glEsVersion="0x00020000" android:required="true"/>

When I run I get the error Could not find class 'com.google.android.gms.location.internal.ParcelableGeofence', referenced from method gls.a 运行时出现错误,找不到方法gls.a引用的类'com.google.android.gms.location.internal.ParcelableGeofence'

For me setting Eclipse's Preferences -> Android -> Build -> Custom keystore fixed the problem. 对我来说,设置Eclipse的Preferences-> Android-> Build-> Custom keystore可以解决此问题。 Also uninstall app and clean build. 还要卸载应用程序并清理构建。

暂无
暂无

声明:本站的技术帖子网页,遵循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 Android:找不到方法glt.a所引用的类&#39;com.google.android.gms.location.internal.ParcelableGeofence - Android: Could not find class 'com.google.android.gms.location.internal.ParcelableGeofence referenced from method glt.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 Google Fit API距离-找不到方法com.google.android.gms.common.zze.zzb引用的类“ android.app.AppOpsManager” - Google Fit API Distance - Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.zze.zzb
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM