解决 Must have one-pixel frame that is either transparent or white
2016-11-22 11:17
1251 查看
ERROR: 9-patch image ...\res\drawable\navbar.9.png malformed.
在Android Studio项目中提示以上错误,因为.9图导致的问题,在Android Studio中会自动检测.9图,提示以上错误也是因为此图片不是标准的.9导致的。
解决方法有两种,可任意选择一种方法来解决:
1、把图片的名称改为普通图片名称。如:navbar.9.png 改为 navbar.png
2、把此图片用.9工具改成标准的.9图即可。
在Android Studio项目中提示以上错误,因为.9图导致的问题,在Android Studio中会自动检测.9图,提示以上错误也是因为此图片不是标准的.9导致的。
解决方法有两种,可任意选择一种方法来解决:
1、把图片的名称改为普通图片名称。如:navbar.9.png 改为 navbar.png
2、把此图片用.9工具改成标准的.9图即可。
相关文章推荐
- Error:Must have one-pixel frame that is either transparent or white.
- Error:Must have one-pixel frame that is either transparent or white in Android Studio
- must have one-pixel frame that is either transparent or white
- Error:Must have one-pixel frame that is either transparent or white in Android Studio
- Frame pixels must be either solid or transparent (not intermediate alphas)
- Class is not a root resource. It, or one of its interfaces must be annotated with @Path:
- 【解决】Element type "typename" must be followed by either attribute specifications, ">" or "/>".
- Android Your content must have a ListView whose id attribute is 'android.R.id.list'错误的解决办法
- flume-sink报错 java.lang.IllegalStateException: close() called when transaction is OPEN - you must either commit or rollback first
- WCF分布式开发常见错误(25):The certificate 'CN=WCFHTTPS' must have a private key that is capable of key exchange
- either "to" is duplicate or "" is a garbage的解决
- Your content must have a ListView whose id attribute is 'android.R.id.list'解决办法。
- Dynamic Web Module 3.0 request Java 1.6 or newer---One or more constraints have not been satisfied解决
- Android—Android中 Your content must have a ListView whose id attribute is 'android.R.id.list'错误的解决办法
- Subscript indices must either be real positive integers or logicals怎么解决
- Absent Code attribute in method that is not native or abstract in class file javax/mail/Session 解决方式
- Your content must have a ListView whose id attribute is 'android.R.id.list' 解决方法
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- Your content must have a ListView whose id attribute is 'android.R.id.list'解决办法
- Your content must have a TabHost whose id attribute is 'android.R.id.tabhost' 解决