안녕 활동에 MapFragment가 추가 오류 내 XML입니다 :안드로이드 구글지도 : 내 활동 여기</p> <p>에 GoogleMap으로 조각을 추가하기 위해 노력하고있어
<LinearLayout
android:id="@+id/layout_map"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/list_margin"
android:visibility="visible" >
<fragment
android:id="@+id/map_frame"
class="com.google.android.gms.maps.MapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
그리고 내 LocateusActivity
에서 onCreate 방법
mapFragment = (MapFragment)getFragmentManager().findFragmentById(R.id.map_frame);
무엇이 잘못되었는지 알 수 없습니다. 이 오류
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.singPost/com.singPost.LocateUsActivity}: android.view.InflateException: Binary XML file line #80: Binary XML file line #80: Error inflating class fragment
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3253)
at android.app.ActivityThread.startActivityNow(ActivityThread.java:2977)
어떤 도움이 많이 감사하다을 얻었다. 감사!
은 XML 레이아웃 파일 기본적으로
, XML 파일 :
안녕하세요는 official documentation으로 당이
Caused by: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 9452000 but found 6587000. 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" />
xml의 라인 80에 무엇입니까 –
안녕하세요 제가 XML 파일에 라인 80의 그림을 추가했습니다 –
조각 내부의지도를 호출하고 있습니까? –