07-16 18:36:18.263: E/AndroidRuntime(24660): FATAL EXCEPTION: main
07-16 18:36:18.263: E/AndroidRuntime(24660): Process: com.example.iigt, PID: 24660
07-16 18:36:18.263: E/AndroidRuntime(24660): java.lang.NoClassDefFoundError: com.example.iigt.GmapActivity
07-16 18:36:18.263: E/AndroidRuntime(24660): at com.example.iigt.MainActivity$1.onClick(MainActivity.java:24)
07-16 18:36:18.263: E/AndroidRuntime(24660): at android.view.View.performClick(View.java:4442)
07-16 18:36:18.263: E/AndroidRuntime(24660): at android.view.View$PerformClick.run(View.java:18471)
07-16 18:36:18.263: E/AndroidRuntime(24660): at android.os.Handler.handleCallback(Handler.java:733)
07-16 18:36:18.263: E/AndroidRuntime(24660): at android.os.Handler.dispatchMessage(Handler.java:95)
07-16 18:36:18.263: E/AndroidRuntime(24660): at android.os.Looper.loop(Looper.java:136)
07-16 18:36:18.263: E/AndroidRuntime(24660): at android.app.ActivityThread.main(ActivityThread.java:5103)
07-16 18:36:18.263: E/AndroidRuntime(24660): at java.lang.reflect.Method.invokeNative(Native Method)
07-16 18:36:18.263: E/AndroidRuntime(24660): at java.lang.reflect.Method.invoke(Method.java:515)
07-16 18:36:18.263: E/AndroidRuntime(24660): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
07-16 18:36:18.263: E/AndroidRuntime(24660): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606)
07-16 18:36:18.263: E/AndroidRuntime(24660): at dalvik.system.NativeStart.main(Native Method)
일단 로그캣 오류는 이렇구요
아래에는 GmapActivity 소스입니다
package com.example.iigt;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.Menu;
public class GmapActivity extends FragmentActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.gmap_activity);
}
public boolean onCreateOptionsMenu(Menu menu){
//getMenuInflater().inflate(R.menu.main, menu);
return true;
}
}
마지막으로 gmap_activity XML 파일인데요
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<fragment
android:id="@+id/fragment1"
android:name="com.google.android.gms.maps.MapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
도대체 무엇이 문제이죠????