2012-07-29 93 views
1

我在Google Play上有一個應用程序。我已經集成了BugSense。所有工作正常突然我得到了3個錯誤第一控制第一行在下面的XML。我不知道爲什麼會發生這種情況,在其他Android設備上工作正常。有任何想法嗎?java.lang.RuntimeException:無法在xml佈局中啓動活動ComponentInfo

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:background="@color/black_text" 
    > 

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:background="@color/black_text" 
     android:layout_above="@+id/relativeView_fav_shows" 
     > 
     <ImageView 
      android:id="@+id/imageView1" 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:layout_centerVertical="true" 
      android:scaleType="centerCrop" 
      android:src="@drawable/background_channel" 
      /> 

     <GridView xmlns:android="http://schemas.android.com/apk/res/android" 
      android:id="@+id/gridview_channelView" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:numColumns="2" 
      android:verticalSpacing="5dp" 
      android:horizontalSpacing="5dp" 
      android:stretchMode="columnWidth" 
      android:listSelector="@null" 
      android:layout_marginTop="6dp" 
      android:gravity="center" 
      > 

     </GridView> 

    </RelativeLayout> 
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:background="@color/black_text" 
      android:layout_below="@+id/gridview_channelView" 
      android:layout_alignParentBottom="true" 
      android:id="@+id/relativeView_fav_shows" 
      > 
      <ImageView 
       android:id="@+id/imageView_favShows" 
       android:layout_width="fill_parent" 
       android:layout_height="wrap_content" 
       android:src="@drawable/fav_shows_normal" 
       /> 
    </RelativeLayout> 
</RelativeLayout> 

Logcat輸出。

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.microeyes.hindiserials/com.microeyes.hindiserials.ChannelMainActivity}: android.view.InflateException: Binary XML file line #14: Error inflating class 
1 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1659) 
2 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1675) 
3 at android.app.ActivityThread.access$1500(ActivityThread.java:121) 
4 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:943) 
5 at android.os.Handler.dispatchMessage(Handler.java:99) 

Thankx

回答

0

這低於標籤只應在availabke母公司頂佈局,與所有其他Laoyts /瀏覽次數刪除它。

xmlns:android="http://schemas.android.com/apk/res/android" 

這可能是錯誤的原因,請張貼logcat輸出。

+0

@Ankit ..但爲什麼錯誤不會發生在所有的Android設備上? – MicroEyes 2012-07-29 07:23:05

+0

我說的是推薦,這就是Android的美妙之處,所有設備的行爲都不一樣......嘗試一下,讓我知道它是否會導致問題。請加上我們的活動創建 – AAnkit 2012-07-29 07:26:44

+0

那個問題仍然存在..我剛剛收到另一個崩潰報告..任何進一步的猜測爲什麼會發生這種情況? – MicroEyes 2012-07-31 05:38:59

相關問題