Wednesday, February 19, 2014

android self-development on the first day encounter such a big problem, to see ah, thank you


Each part of the code is such
main.xml

xmlns: tools = "http://schemas.android.com/tools"
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: background = "@ drawable / background"
>
android: layout_width = "fill_parent"
android: layout_height = "wrap_content"
android: text = "@ string / title"
style = "@ style / text"
/>
android: id = "@ + id / startButton"
android: layout_gravity = "center_vertical | center_horizontal"
android: text = "@ string / start"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
style = "@ style / text"
/>

stings.xml



conducted using xml ui design layout
3.1
click to start the game ~ ~ ~ ~ ~

styles.xml




Error message is this
[2013-07-27 16:24:29 - xmlui_01] W / ResourceType (7448): Bad XML block: header size 112 or total size 0 is larger than data size 0
[2013-07-27 16:24:29 - xmlui_01] F: \ workmoney \ xmlui_01 \ res \ menu \ main.xml: 3: error: Error: No resource found that matches the given name (at 'title' with value '@ string / action_settings').
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Your string inside a problem, @ string / action_settings see what this thing is?

There you which file prompts you wrong ah
Reply:
I also saw this, I do not know how to change ah, look at the problem seemed to be telling the value of string / title does not define the content, but I have defined in the string, and had no clear idea what the problem is
Reply:
Your res / main.xml has android: title = "@ string / action_settings" such a reference, and your string file does not define action_settings
Reply:
See errors such as the third floor is said
Reply:
I there is no android: title = "@ string / action_settings" The references I use android: text = "@ string / title" and there be ui design layout using xml in string define such
Reply:
LZ please clean it. Once your resources where there is a little bit wrong, you can not gen in the code generation, then you will not find all the resources, so please be able to solve the resource where the first error is resolved, and then re-build it again, Some errors may be automatically repaired.
Please provide the following there LZ [2013-07-27 16:24:29 - xmlui_01] W / ResourceType (7448): Bad XML block: header size 112 or total size 0 is larger than data size 0
Where is this wrong, you do not directly give people can understand. Double-click on what you can locate the error to the wrong place
Reply:
Are no error messages, and only run as if the sudden emergence of this issue
Reply:
This is not your run-time errors. One thing you need to know, when you run as background will build, so you this is a compilation error. And if your project has a red cross, that is wrong, it absolutely does not allow you to debug or run the
Reply:
I put my whole package sent to you, you gave me a look, thank you
Reply:
reference to the 6th floor vipcxj reply:
LZ please clean it. Once your resources where there is a little bit wrong, you can not gen in the code generation, then you will not find all the resources, so please be able to solve the resource where the first error is resolved, and then re-build it again, Some errors may be automatically repaired.
Please provide the following there LZ [2013-07-27 16:24:29 - xmlui_01] W / ResourceType (7448): Bad XML block: header size 112 or total size 0 is larger than data size 0
Where is this wrong, you do not directly give people can understand. You double click the error to be able to locate the wrong place
I ordered did not use, is not I use the sdk, avd, eclipse, etc. are the latest reason,
Reply:
cited a floor shen332401890 reply:
problem inside your string, @ string / action_settings see what this thing is?

There you which file prompts you wrong ah
no, ah, I was completely done by the book, but that is a mistake, do not understand
Reply:
vipcxj@126.com
You can send to my mailbox
Reply:
reference to the 12th floor vipcxj reply:
vipcxj@126.com
You can send to my mailbox
I sent you passed, you give it a look, thank you
Reply:
6th Floor approach is about, you can not build the next Baidu.
Reply:
Changing for the better, has been sent
Reply:
Hello, I also began to learn, problems encountered just like you, I ask you finally, how to solve

No comments:

Post a Comment