2013-07-09 2 views
1

Android 용 Google API를 사용하고 있습니다. 나는이 줄을 썼다 :java.lang.NoClassDefFoundError : com.google.android.maps.GeoPoint

GeoPoint point = new GeoPoint(234120, 4885693); 

나는 프로젝트의 속성을 변경하고 Google API를 포함했다.

07-09 15:28:10.046: E/AndroidRuntime(7248): Caused by: java.lang.NoClassDefFoundError: com.google.android.maps.GeoPoint 
+1

개발자 도구에서 설정 문제가있는 것으로 보입니다. IDE (예 : Eclipse)를 사용하는 경우 질문의 태그에 이름을 추가하십시오. –

답변

6

application 태그 아래
<uses-library android:name="com.google.android.maps" />

를 추가하고 activity, 태그 :

<application 
     android:name=".Test" 
     <uses-library 
      android:name="com.google.android.maps" 
      android:required="true" /> 
     <activity 
      android:name=".Main" 

오류는 다음과 같습니다이 내 매니페스트 파일입니다.

내가 잘못 아니에요 경우

<application 
    android:name=".Test"> 
    <uses-library 
     android:name="com.google.android.maps" /> 
    <activity 
     android:name=".Main"... 
0

This "using-library" node is used by Play to determine the compatible devices는 ...

지도 클래스가 인식 할 이클립스에서

는, 당신은 당신의 자신에이 프로젝트를 포함하는 프로젝트로 플레이 서비스를 가져와야합니다 도서관으로. 당신은 또한 필요합니다

  • com.google.android.providers.gsf.permission.READ_GSERVICES 권한
  • 에 com.google.android.maps.v2.API_KEY
  • 의 값을 가진 메타 데이터 노드

한번에 킥 스타트 튜토리얼 this ...