Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Crash right off the bet....(FragmentLayout sample App)
Crash right off the bet.... [message #785182] Sat, 28 January 2012 16:18 Go to next message
Mimi Tam is currently offline Mimi TamFriend
Messages: 33
Registered: January 2010
Member

I am trying to run the FragmentLayout sample program using android:minSdkVersion="15"

It crashed right off the bet doing SetContentView(), getting below exception:

Unable to start activity ComponentInfo{net.examples.HelloFragmentLayout/net.examples.HelloFragmentLayout.FragmentLayout}: android.view.InflateException: Binary XML file line #6: Error inflating class Fragment

The "net.examples.HelloFragmentLayout/net.examples.HelloFragmentLayout.FragmentLayout" looks like a repeat but I don't know what caused this.

In my fragment_layout.xml (below), I am getting a warning "This FrameLayout can be replaced with a merge tag". Not sure if this has an impact.

<?xml version="1.0" encoding="UTF-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">

<Fragment class="net.examples.HelloFragmentLayout.TitlesFragment"
android:id="@+id/titles"
android:layout_width="match_parent"
android:layout_height="match_parent" />

</FrameLayout>

Any help would be greatly appreciated.

THANKS.
Re: Crash right off the bet.... [message #785487 is a reply to message #785182] Sun, 29 January 2012 03:30 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On 01/28/2012 10:18 AM, Mimi Tam wrote:
>
> I am trying to run the FragmentLayout sample program using
> android:minSdkVersion="15"
>
> It crashed right off the bet doing SetContentView(), getting below
> exception:
>
> Unable to start activity
> ComponentInfo{net.examples.HelloFragmentLayout/net.examples.HelloFragmentLayout.FragmentLayout}:
> android.view.InflateException: Binary XML file line #6: Error inflating
> class Fragment
>
> The
> "net.examples.HelloFragmentLayout/net.examples.HelloFragmentLayout.FragmentLayout"
> looks like a repeat but I don't know what caused this.
>
> In my fragment_layout.xml (below), I am getting a warning "This
> FrameLayout can be replaced with a merge tag". Not sure if this has an
> impact.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
> android:layout_width="match_parent"
> android:layout_height="match_parent">
>
> <Fragment class="net.examples.HelloFragmentLayout.TitlesFragment"
> android:id="@+id/titles"
> android:layout_width="match_parent"
> android:layout_height="match_parent" />
>
> </FrameLayout>
> Any help would be greatly appreciated.
>
> THANKS.
>
You are in the wrong forums. Android is provided by Google. You need
to ask about Android development in their forums.
Previous Topic:hibernate plugin
Next Topic:Incompatible JavaHL library loaded. 1.7.x or later required
Goto Forum:
  


Current Time: Fri Apr 26 22:26:17 GMT 2024

Powered by FUDForum. Page generated in 0.08825 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top