Top Picks

   
March 10, 2013

 

Android developer first app tutorial

 

I’m new to android app development and was wondering if anyone has encountered the following console errors when building a new project. I am following the steps outlined in this article and have received the below-listed errors. Any help would be greatly appreciated.

Article: http://developer.android.com/training/basics/firstapp/building-ui.html#Button

activity_main.xml (res/layout): <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" tools:context=".MainActivity" > <EditText android:id="@+id/edit_message" android:layout_weight="1" android:layout_width="0dp" android:layout_height="wrap_content" android:hint="@string/edit_message" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/button_send" /> </LinearLayout>

Console:
W/ResourceType( 6788): Bad XML block: header size 103 or total size 6348568 is larger . Than data size 0
C:ProjectsFirstAppresmenumain.xml:3: error: Error: No resource found that matches The given name (at ‘title’ with value ‘@string/action_settings’).
W/ResourceType( 2616): Bad XML block: header size 530 or total size 34332440 is larger than data size 0
C:ProjectsFirstAppresmenumain.xml:3: error: Error: No resource found that matches the given name (at ‘title’ with value ‘@string/action_settings’).

 

Answer

as in Console Log :

Error: No resource found that matches The given name (at ‘title’ with
value ‘@string/action_settings’)

means u need to define an

action_settings

string inside

res/values/strings.xml

file :

<resources> <!-- Other String name- value --> <string name="action_settings">Action Settings</string> </resources>

and second way is if you are not using

Menu

for Your Application then just comment

android:title

item attribute inside

res/menu/main.xml

.

Professional Hosting fro Just Host

Filed under: Android Coding FAQ

Tags:

Comments

No Comments

Leave a reply