Exception raised during rendering in Eclipse - android

I have an error in Android xml layout as follows :
Exception raised during rendering: <include /> can only be used inside of a ViewGroup
Exception details are logged in Window > Show View > Error Log
The following classes could not be found:
- android.support.v7.internal.widget.ActionBarOverlayLayout (Fix Build Path, Edit XML, Create Class)
Now, When I am changing the AppTheme to Theme.Holo than its working fine.
I want to know that Why is it like this ?

Related

Qt- Adding custom XML from Android resource

I'm developing application with Qt Creator. I just want use layout for specific Dialog.I created XML, but how to add this XML to project?
I added this xml on main_activity's directory (myApplication\android-source\res\layout)
but when I try to compile, I get this error after creating this:
BUILD FAILED
D:\1ADDDT\android-sdk2\android-sdk2\tools\ant\build.xml:716: The following error occurred while executing this line:
D:\1ADDDT\android-sdk2\android-sdk2\tools\ant\build.xml:730: Compile failed; see the compiler error output for details.
And I Should I add this XML to resource (.qrc) or what?
Here is my build.xml:
Use tools:context as one of attribute and set it to .MainActivity .

String error in MainActivity in Android studio

I am having issues with resolving R in Android studio. Here is a screenshot of my error:
As you can see, the error is with the layout width String in wrap_content.I do not understand why this is an error since xml allows you to assign wrap_content to layout_width
http://217.199.187.200/pentaworld.com/content_main.jpg
http://217.199.187.200/pentaworld.com/content_main_2.jpg

Eclipse can't render Android layout

Eclipse gives the following error when I try to add "android.support.v7.widget.Toolbar"
The following classes could not be instantiated:
- android.support.v7.widget.Toolbar (Open Class, Show Error Log) See the Error
Log (Window > Show View) for more details.
Layout rendering error

Android graphical layout representation error?

java.lang.NullPointerException
Exception details are logged in Window > Show View > Error Log
The following classes could not be found:
- RelativeLayout (Change to android.widget.RelativeLayout, Fix Build Path, Edit XML)

android eclipse can't see layer-list in Graphical Layout

i'm trying to build a layer-list of 2 images and to see it in the Graphical layout in eclipse in order to see that it came correctly...
for some reason i get an error
this is my xml file:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="50dp"
android:layout_height="50dp">
<item android:drawable="#drawable/picuser"
android:layout_width="50dp"
android:layout_height="50dp"/>
<item android:drawable="#drawable/ic_launcher"
android:layout_width="50dp"
android:layout_height="50dp"/>
</layer-list>
this is my error:
NOTE: This project contains Java compilation errors, which can cause rendering failures
for custom views. Fix compilation problems first.
com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup
Exception details are logged in Window > Show View > Error Log
The following classes could not be found:
- item (Fix Build Path, Edit XML)
- layer-list (Fix Build Path, Edit XML)

Categories

Resources