LoginSignup
2
3

More than 5 years have passed since last update.

9patchを入れたらFrame pixels must be either solid or transparent (not intermediate alphas).

Posted at

9patchファイルをandroid studioのdrawableディレクトリに入れたらエラーが出た

9patchファイル入れる

ビルド

エラー

エラーメッセージ。
Frame pixels must be either solid or transparent (not intermediate alphas).
Found at pixel #5 along right edge.

http://qiita.com/natsuki_summer/items/6073ace74f21f25cd4e4
ここ見て9patchファイルが悪いのかと思いきや、
AndroidStudio上で9patchファイルを編集して(適当に1px塗りつぶす→塗りつぶしたところを戻す)からビルドしなおしたらビルドできた。
9patchファイルのピクセルをどこか塗りつぶしたりしたわけでもない。。

2
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3