디버깅용 Google Api Key를 받아서 간단한 구글맵 뷰 예제를 따라하는데, Api Key 때문은은 아닌것같은데 자꾸 아래같은 에러가 뜨면서 실행이 안되네요 ㅠㅠ
참고로 jdk1.7 사용중이고, 에뮬레이터말고 Galaxy S2에서 돌리고 있어요
================Error Msg==================
11-24 15:56:07.945: I/Process(2396): Sending signal. PID: 2396 SIG: 9
11-24 16:02:16.060: W/dalvikvm(2967): Unable to resolve superclass of Landroid/project/GoogleMapActivity; (10)
11-24 16:02:16.060: W/dalvikvm(2967): Link of class 'Landroid/project/GoogleMapActivity;' failed
11-24 16:02:16.060: D/AndroidRuntime(2967): Shutting down VM
11-24 16:02:16.060: W/dalvikvm(2967): threadid=1: thread exiting with uncaught exception (group=0x4001e578)
11-24 16:02:16.060: E/AndroidRuntime(2967): FATAL EXCEPTION: main
11-24 16:02:16.060: E/AndroidRuntime(2967): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{android.project/android.project.GoogleMapActivity}: java.lang.ClassNotFoundException: android.project.GoogleMapActivity in loader dalvik.system.PathClassLoader[/data/app/android.project-2.apk]
11-24 16:02:16.060: E/AndroidRuntime(2967): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1573)
11-24 16:02:16.060: E/AndroidRuntime(2967): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
11-24 16:02:16.060: E/AndroidRuntime(2967): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
11-24 16:02:16.060: E/AndroidRuntime(2967): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
11-24 16:02:16.060: E/AndroidRuntime(2967): at android.os.Handler.dispatchMessage(Handler.java:99)
11-24 16:02:16.060: E/AndroidRuntime(2967): at android.os.Looper.loop(Looper.java:123)
11-24 16:02:16.060: E/AndroidRuntime(2967): at android.app.ActivityThread.main(ActivityThread.java:3691)
11-24 16:02:16.060: E/AndroidRuntime(2967): at java.lang.reflect.Method.invokeNative(Native Method)
11-24 16:02:16.060: E/AndroidRuntime(2967): at java.lang.reflect.Method.invoke(Method.java:507)
11-24 16:02:16.060: E/AndroidRuntime(2967): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
11-24 16:02:16.060: E/AndroidRuntime(2967): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
11-24 16:02:16.060: E/AndroidRuntime(2967): at dalvik.system.NativeStart.main(Native Method)
11-24 16:02:16.060: E/AndroidRuntime(2967): Caused by: java.lang.ClassNotFoundException: android.project.GoogleMapActivity in loader dalvik.system.PathClassLoader[/data/app/android.project-2.apk]
11-24 16:02:16.060: E/AndroidRuntime(2967): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
11-24 16:02:16.060: E/AndroidRuntime(2967): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
11-24 16:02:16.060: E/AndroidRuntime(2967): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
11-24 16:02:16.060: E/AndroidRuntime(2967): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
11-24 16:02:16.060: E/AndroidRuntime(2967): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1565)
11-24 16:02:16.060: E/AndroidRuntime(2967): ... 11 more
====Manifest====
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="android.project"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="10" />
<uses-library android:name="com.google.android.maps" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".GoogleMapActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
============Layout================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
androidLgravity="center_vertical">
<EditText
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:id="@+id/edit1"/>
<EditText
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:id="@+id/edit2"/>
<Button
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="클릭Here"
android:id="@+id/button"/>
</LinearLayout>
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="3">
<com.google.android.maps.MapView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="09OM5aExNIkfTuPuhgAw9zYSciAQHJZ6ZN3MBoA">
</com.google.android.maps.MapView>
</LinearLayout>
</LinearLayout>
==============Activity Java File==============
package android.project;
import android.os.Bundle;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
public class GoogleMapActivity extends MapActivity {
MapView mapView;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mapView = (MapView) findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(true);
mapView.setSatellite(true);
}
@Override
protected boolean isRouteDisplayed(){
return false;
}
}
빠르고 정확한 답변 주시면 고맙겠습니다 ㅠㅠㅠㅠ
정말 간단한것도 안되니 이상하네요....




혼자서 해결이 되었네요!!!!
-------------------------------------------------------------------------------------------------------------------------------------
Base class with code to manage the boring necessities of any activity that displays a
MapView. Activity responsibilities include:MapViewA subclass should create its own
MapViewinonCreate(android.os.Bundle), either with the MapView constructor (then add it to a layout View withViewGroup.addView(View)) or leave the construction (and layout) up to inflation from the layout XML.This is not a standard package in the Android library. In order to use it, you must add the following XML element, as a child of the
applicationelement, in your AndroidManifest.xml file:Only one MapActivity is supported per process. Multiple MapActivities running simultaneously are likely to interfere in unexpected and undesired ways.
-------------------------------------------------------------------------------------------------------------------------------------
즉, <application> 의 Child에 넣어야 했네요 ㅠㅠ <uses- 쪽에 다같이 넣는줄알았는데 제가 잘못알고있었네요!!