Com.Google.Android.Gsf Package Couldn't Be Found

com.google.android.gsf package couldn't be found

it seems to me like you're using the wrong emulator.

The default emulator uses a regular Android emulator that doesn't have any Google packages and can't run all sorts of things like maps, c2dm and all sorts of stuff like that.

what you want to do, is create a new emulator that can support the Google APIs.

then, when you run the project, choose the emulator that runs the target name Google APIs (Google Inc).

good luck.

how to fix [failed to register ,Device does not have package com.google.android.gsf]

You need to use Emulator with a Google API.

Could not find class 'com.google.android.gms.location.internal.ParcelableGeofence referenced from method glt.a

I show you how I solved the same problem you have.

First of all, I cleaned all sdk and I downloaded again Google Play Services lib. Then I removed .android folder of my computer and I regenerated my debug.keystore.

After that, I just get my new SHA1 to obtain my Google Maps V2 Api Key.

After update my apikey, let's see how I change my code.

Now I use fragment with MapFragment insted of MapView in your xml layout.

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MapsActivity" >

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

</RelativeLayout>

And use FragmentManager to locate it:

    public class MapsActivity extends Activity
{
private GoogleMap map;

@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_map);

// Gets the MapView from the XML layout and creates it
map = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();
map.getUiSettings().setMyLocationButtonEnabled(false);
//map.setMyLocationEnabled(true);
map.setOnMapClickListener(this);
map.setOnMapLongClickListener(this);
try
{
MapsInitializer.initialize(MapsActivity.this);
}
catch (Exception e)
{
e.printStackTrace();
}
}

I hope that's helpfull and sorry if my english is so bad,
regards



Related Topics



Leave a reply



Submit