Hi I have Developed my app includes Google Map.I have included Google play service lib file Also but getting this error in log cat
09-30 16:08:33.175: W/System.err(12349): java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable
09-30 16:08:33.176: W/System.err(12349): at com.google.android.gms.maps.GoogleMapOptions.createFromAttributes(Unknown Source)
09-30 16:08:33.176: W/System.err(12349): at com.google.android.gms.maps.MapFragment.onInflate(Unknown Source)
my xml file:
<RelativeLayout xmlns:android="schemas.android.com/apk/res/android";
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<fragment
android:id="@+id/MapView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:name="com.google.android.gms.maps.MapFragment"/>
</RelativeLayout>
Mainactivity class:
import android.app.Activity;
import android.os.Bundle;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.MapFragment;
public class ShowMap extends Activity
{
GoogleMap Map;
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.mapview);
Map = ((MapFragment)getFragmentManager().findFragmentById(R.id.MapView)).getMap();
} }