Skip to content Skip to sidebar Skip to footer

Rendering Issue Using Android Studio 0.4.0

I recently decided to try Android Studio after being a while on Eclipse. My main activity xml rendered okay on Eclipse but Studio seems to have a problem with it. It reports this o

Solution 1:

Remove the following line from the XML inside your fragment:

tools:layout="@layout/activity_main"/>

Reason: In Android Studio, you're presented with an option to edit separate layouts when working with an XML document containing a fragment. Upon selecting the option to edit the parent layout, this line above is inserted into the code. Cheers

Post a Comment for "Rendering Issue Using Android Studio 0.4.0"