2014-06-07 2 views
-1

내 애플 리케이션에서 내 이클립스에서 Google 샘플을 사용하고 기본 map.java 코드를 사용하지만 내 애플 리케이션을 실행할 때 충돌이 내려! 내가 구글지도보기 튜토리얼 단계 링크에 의해 단계를 사용하는 경우 :구글 맵 안드로이드 v2가 충돌

https://developers.google.com/maps/documentation/android/start?hl=pt-ZA

문제가 없습니다. 내 분 SDK : 10 그리고 대상 SDK (19)와 컴파일 : 19


내 로그 캣 : 06-07 01 : 23 : 11.180 :/W GooglePlayServicesUtil (1813) : 구글이 서비스를 재생하는 것은 없습니다. 하지만 Google Play 서비스가 설치되었습니다.

+0

그러면 logcat을 게시하십시오. –

+0

알겠습니다 내 친구가 기다려주십시오 – user3703052

+1

어디 에뮬레이터 또는 실제 장치에 ur 애플 리케이션을 실행 – kId

답변

0

  1. 프로젝트는 구글 플레이 서비스를 가져와야합니다 두 가지 시나리오가있을 수 있습니다.
  2. AndroidManifest에서 <application> 태그의 하위에
    <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />이 있어야합니다.

편집 :

의 AndroidManifest.xml

<application <!-- Application Tag --> 
    android:allowBackup="true" 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" > 
    <meta-data <!--child of application tag --> 
     android:name="com.google.android.gms.version" 
     android:value="@integer/google_play_services_version" /> 
    <meta-data 
     android:name="com.google.android.maps.v2.API_KEY" 
     android:value="AIzaSyAvGvbXJD4N5PC_YT2EvdcPgP9mx9YCMs4" /> 
    <!-- activity declarations --> 
    <activity 
     android:name="com.sample.MainActivity" 
     android:label="@string/app_name" 
     android:theme="@android:style/Theme.NoTitleBar" > 
    </activity> 

+0

이 태그를 추가했으나 의 자식은 무엇입니까? ? – user3703052

+0

지금 확인해보세요. – ImMathan

+0

수 친구가 내 친구를 추락시킵니다! – user3703052