2015-01-12 1 views
-1

Android Studio에서 비교적 새로운 기능이므로 여기에서 Google지도로 작업하려고했습니다. Eclipse에서 작성하고 컴파일 한 이전 코드를 사용했습니다. 그러나 Android Studio에서 여전히 구문 오류가 표시됩니다.Android Studio의 Google지도 XML에 오류가 있습니다.

cannot resolve symbol android 
cannot resolve symbol gms 
cannot resolve symbol maps 
cannot resolve symbol SupportMapFragment 

Google 개발자 가이드를 포함하여 두 개의 다른 블로그를 확인했습니다. 두 가지 옵션이 있는데, MapFragment 및 SupportMapFragment를 사용하여 확인했습니다. 결과는 두 경우 모두 동일합니다. 나는이 XML 파일에 무엇을 해달라고

<?xml version="1.0" encoding="utf-8"?> 

<fragment xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:map="http://schemas.android.com/apk/res-auto" 
    android:id="@+id/map" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:name="com.google.android.gms.maps.SupportMapFragment" >This is error line. 
/> 

:

은 XML 코드는 아래와 같습니다. 감사합니다.

+0

을 적어도 빨간색 기호가 당신에게 무엇을 말할! –

+1

@MuhammedRefaat, 죄송합니다. 언급하는 것을 잊었습니다. – Ibtehaz

답변

0

this answer에 따라, 당신은 다음 앱 (look here)에 추가, 안드로이드 스튜디오 (look here, or here)으로 프로젝트 android-sdk-windows\add-ons\addon_google_apis_google_inc_8를 가져올 수 있습니다.

관련 문제