找不到类的com.google.android.gms.location.internal.ParcelableGeofence“,从法gls.a引用 [英] Could not find class 'com.google.android.gms.location.internal.ParcelableGeofence', referenced from method gls.a

查看:250
本文介绍了找不到类的com.google.android.gms.location.internal.ParcelableGeofence“,从法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:

我有以下的code渲染贴图...它的工作了几天,然后彻底停止工作。我已经改变了API密钥,但也没什么。

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.

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();


        }


    }

我的XML是如下:

My xml is as below:

<?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"/>

我的清单已经确定所有refrences和权限

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"/>


      

当我跑我的错误找不到类的com.google.android.gms.location.internal.ParcelableGeofence,从法gls.a引用

When I run I get the error Could not find class 'com.google.android.gms.location.internal.ParcelableGeofence', referenced from method gls.a

推荐答案

有关我设置Eclipse的preferences - > Android的 - >构建 - >自定义密钥库解决了这一问题。另外卸载应用程序,干净的构建。

For me setting Eclipse's Preferences -> Android -> Build -> Custom keystore fixed the problem. Also uninstall app and clean build.

这篇关于找不到类的com.google.android.gms.location.internal.ParcelableGeofence“,从法gls.a引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆