내 응용 프로그램이 Android 1.5에서 작동하도록하는 데 문제가 있습니다. 그것은 1.6에서 2.1 잘 작동, 2.2하지만 1.5을 실행하려고 할 때마다, 나는 로그 캣 출력과 긴밀한 즉시 힘을 얻을 : 라인 번호로,Android 1.5 관련 오류
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.qrohlf.activites/com.qrohlf.activites.BookmarkHistoryTabActivity}:
android.view.InflateException: Binary XML file line #2: Error inflating class
java.lang.reflect.Constructor
이것은 매우 이상한 날 파업을 (2) 내 레이아웃 XML은 단지
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
아이디어가 있습니까? 레이아웃 XML을 놓치는 방식에서 1.5와 1.6 사이의 주요 API 변경 사항이 있습니까? (I는 참조 용으로 아래에있는 내 레이아웃 XML의 나머지 부분을 포함 시켰습니다)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<include android:id="@+id/custom_titlebar" layout="@layout/custom_titlebar" />
<ViewFlipper android:id="@+id/frame_content"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1" >
<ListView android:id="@+id/soccerteams_listview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFFFFFFF"/>
<ListView android:id="@+id/countries_listview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFFFFFFF"/>
</ViewFlipper>
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:background="@android:color/black"
android:padding="0px">
<Button android:id="@+id/bookmarks_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/bookmarks"
android:textColor="@android:color/primary_text_dark"
android:drawableTop="@drawable/ic_bookmark_tab"
android:background="@drawable/tab_background"
android:layout_weight="1"/>
<Button android:id="@+id/history_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/history"
android:textColor="@android:color/primary_text_dark"
android:drawableTop="@drawable/ic_history_tab"
android:background="@drawable/tab_background"
android:layout_weight="1"/>
</LinearLayout>
</LinearLayout>
문제가 포함되어야한다고 생각합니다. 추적 :) –
Jorgesys
전체 스택 추적을 게시하십시오. –