Monday, May 5, 2014

When packing Android project using Ant, due to resource file contains .9. Png error, urgent help ah


Error message as follows:
Buildfile: E: \ workspace \ eclipse_370 \ mycc \ build.xml
generateAPK:
init:
[Echo] Initializing all output directories ...
gen-R:
[Echo] Generating R.java from the resources ...
[Exec] ERROR: 9-patch image res \ drawable-hdpi \ bg_button1.9.png malformed
.[Exec] Frame pixels must be either solid or transparent (not intermediate alphas).
[Exec] Found at pixel # 2 along bottom edge.
[Exec] ERROR: Failure processing PNG image res \ drawable-hdpi \ bg_button1.9.png
[Exec] res \ layout \ main.xml: 12: error: Error:. No resource found that matches the given name (at 'background' with value '@ drawable / bg_about_btn')

BUILD FAILED
E: \ workspace \ eclipse_370 \ mycc \ build.xml: 227: The following error occurred while executing this line:
E: \ workspace \ eclipse_370 \ mycc \ build.xml: 106: exec returned: 1


Total time: 1 second

Just use ant script to compile it wrong, if there is no immediate problem with the eclipse package!

This problem get an afternoon, and did not figure out, they also look great cattle each wing wow! ! !
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
The picture is a problem with the tool to open resave Figure 9, should be fine
Reply:
:. Found at pixel # 2 along bottom edge
Pictures may be a problem with the lower edge of that line, try to re-draw the
Reply:
Picture is determined to be a problem, I put that figure does not delete the error you, thank you 2
Reply:
Yes, I am also a similar problem, build folder does not delete things and clean

No comments:

Post a Comment