안드로이드를 시작 한지 얼마 안된 초보입니다
다른 PC에서 작성한 프로젝트를 그대로 복사해 똑같은 이클립스 버전의 타 PC로 복사하면 맵 부분이 실행이 되질 않습니다.
기기에 연결해 컴파일 해보면 메뉴에서 Map을 누르면 "(제목)이가 중단되었습니다" 라는 메세지가 뜹니다.
바로 옆자리 PC에서 바로 실행 되던 것이, Map만 실행이 되질 않습니다. 인증 키 때문인가요?
google-play-services_lib도 다시 연결 했고,
Google Map Android V2의 API키도 제 것으로 옮기고, SHA1부분이랑, 프로젝트 이름까지바꿧는데요...
11-25 13:37:51.537: E/AndroidRuntime(30258): FATAL EXCEPTION: main
11-25 13:37:51.537: E/AndroidRuntime(30258): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.pedal/com.example.pedal.MapActivity}: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4030500 but found 0. You must have the following declaration within the <application> element: <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
11-25 13:37:51.537: E/AndroidRuntime(30258): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2067)
11-25 13:37:51.537: E/AndroidRuntime(30258): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2092)
11-25 13:37:51.537: E/AndroidRuntime(30258): at android.app.ActivityThread.access$600(ActivityThread.java:138)
11-25 13:37:51.537: E/AndroidRuntime(30258): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1203)
11-25 13:37:51.537: E/AndroidRuntime(30258): at android.os.Handler.dispatchMessage(Handler.java:99)
11-25 13:37:51.537: E/AndroidRuntime(30258): at android.os.Looper.loop(Looper.java:137)
11-25 13:37:51.537: E/AndroidRuntime(30258): at android.app.ActivityThread.main(ActivityThread.java:4874)
11-25 13:37:51.537: E/AndroidRuntime(30258): at java.lang.reflect.Method.invokeNative(Native Method)
11-25 13:37:51.537: E/AndroidRuntime(30258): at java.lang.reflect.Method.invoke(Method.java:511)
11-25 13:37:51.537: E/AndroidRuntime(30258): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
11-25 13:37:51.537: E/AndroidRuntime(30258): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
11-25 13:37:51.537: E/AndroidRuntime(30258): at dalvik.system.NativeStart.main(Native Method)
11-25 13:37:51.537: E/AndroidRuntime(30258): Caused by: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4030500 but found 0. You must have the following declaration within the <application> element: <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
11-25 13:37:51.537: E/AndroidRuntime(30258): at com.google.android.gms.common.GooglePlayServicesUtil.n(Unknown Source)
11-25 13:37:51.537: E/AndroidRuntime(30258): at com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable(Unknown Source)
11-25 13:37:51.537: E/AndroidRuntime(30258): at com.example.pedal.MapActivity.onCreate(MapActivity.java:51)
11-25 13:37:51.537: E/AndroidRuntime(30258): at android.app.Activity.performCreate(Activity.java:5026)
11-25 13:37:51.537: E/AndroidRuntime(30258): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
11-25 13:37:51.537: E/AndroidRuntime(30258): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2031)
11-25 13:37:51.537: E/AndroidRuntime(30258): ... 11 more
에러 내용입니다... 도움 주시면 감사하겠습니다.
프로젝트 명은 pedal이고 MainActivity에서 버튼 클릭으로 MapActivity에서 지도를 불러오는 형식입니다.
아래는 맵 부분의 xml파일이구요... 원래 맵 상에서 Marker 표시하기 이런게 다 잘됬었는데,,,
옮기면 되질 않습니다.. 구글 맵 키의 문제 같은데,,,
<?xml version="1.0" encoding="utf-8"?>
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent" >
</LinearLayout>
</fragment>