-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Found pixel at #" error #82
Comments
Add below line inside build.gradle |
Same problem here with drawables generated by Simple Nine-patch Generator. Android Studio 2.1.2
Setting AAPT |
@mukesh4u
|
Please re-open if this is still a problem (and attach an example file that's causing the errors); I'm not seeing any errors. |
@romannurik Having same error. UPD. Problem solved by opening image in build-in Android Studio 9patch editor, making slight change and save, then revert this change and save again. |
This is indeed a bug with Android Asset Studio. Import the attached xxxhdpi source file, set regions and then export and get the attached zip. The xxxhdpi file produces the error: AAPT err(Facade for 1513812613) : No Delegate set : lost message:ERROR: 9-patch image /home/bob/workspace/cards/cards-android/app/src/main/res/drawable-xxxhdpi/medium_button.9.png malformed. Inspect pixel 125 and you will see it indeed has alpha 0x07 |
Should be fixed by a4ddd69 |
I am using Android Studio 1.5, with the build tools version 23.0.2, and am getting a Gradle Build Error for every 9-patch image that I use (using your tool).
Here is the complete error message from GradleBuild Log -
AAPT: ERROR: 9-patch image /home/kunal/AndroidStudioProjects/MyApplication/app/src/main/res/drawable-hdpi/munchery_ondemand.9.png malformed.
AAPT: Frame pixels must be either solid or transparent (not intermediate alphas).
AAPT: Found at pixel #360 along bottom edge.
AAPT: ERROR: 9-patch image /home/kunal/AndroidStudioProjects/MyApplication/app/src/main/res/drawable-xhdpi/munchery_ondemand.9.png malformed.
AAPT: Frame pixels must be either solid or transparent (not intermediate alphas).
AAPT: Found at pixel #480 along bottom edge.
AAPT err(Facade for 1648474378) : No Delegate set : lost message:ERROR: 9-patch image /home/kunal/AndroidStudioProjects/MyApplication/app/src/main/res/drawable-xxxhdpi/munchery_ondemand.9.png malformed.
AAPT err(Facade for 1648474378) : No Delegate set : lost message: Frame pixels must be either solid or transparent (not intermediate alphas).
AAPT err(Facade for 1648474378) : No Delegate set : lost message: Found at pixel #959 along top edge.
:app:mergeDebugResources FAILED
Error:Execution failed for task ':app:mergeDebugResources'.
> Some file crunching failed, see logs for details
Information:BUILD FAILED
The text was updated successfully, but these errors were encountered: