Well, i'm trying to add google map to my application but i'm having those errors
04-17 16:25:07.169: E/AndroidRuntime(8592): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class fragment
04-17 16:25:07.169: E/AndroidRuntime(8592): Caused by: java.lang.ClassNotFoundException: android.view.fragment in loader dalvik.system.PathClassLoader[/data/app/com.example.guide_oran-1.apk]
My main activity :
package com.example.guide_oran;
import android.app.Activity;
import android.os.Bundle;
public class Activity_map extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.gmap);
}
}
my xml
<?xml version="1.0" encoding="utf-8"?>
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map"
class="com.google.android.gms.maps.MapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>