为什么在android studio 布局中使用自定义控件就报错

yinzelin111 yinzelin111 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
这是报的错误 实在布局的预览界面显示的。每次写自定义控件都是
- com.rryy.isp.zl.ui.Kanner (Open Class, Show Exception, Clear Cache)
Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE Exception Details Write access not allowed during rendering (\data\data\null\cache\uil-images)   at com.android.ide.common.rendering.RenderSecurityException.create(RenderSecurityException.java:52)   at com.android.ide.common.rendering.RenderSecurityManager.checkWrite(RenderSecurityManager.java:544)   at java.io.File.mkdir(File.java:1305)   at com.nostra13.universalimageloader.core.DefaultConfigurationFactory.createReserveDiskCacheDir(DefaultConfigurationFactory.java:104)   at com.nostra13.universalimageloader.core.DefaultConfigurationFactory.createDiskCache(DefaultConfigurationFactory.java:85)   at com.nostra13.universalimageloader.core.ImageLoaderConfiguration$Builder.initEmptyFieldsWithDefaultValues(ImageLoaderConfiguration.java:580)   at com.nostra13.universalimageloader.core.ImageLoaderConfiguration$Builder.build(ImageLoaderConfiguration.java:559)   at com.rryy.isp.zl.ui.Kanner.initImageLoader(Kanner.java:159)   at com.rryy.isp.zl.ui.Kanner.<init>(Kanner.java:45)   at com.rryy.isp.zl.ui.Kanner.<init>(Kanner.java:50)   at java.lang.reflect.Constructor.newInstance(Constructor.java:526)   at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:756)   at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)   at android.view.LayoutInflater.rInflate(LayoutInflater.java:728)   at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:759)   at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)   at android.view.LayoutInflater.rInflate(LayoutInflater.java:728)   at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:759)   at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)   at android.view.LayoutInflater.rInflate(LayoutInflater.java:728)   at android.view.LayoutInflater.inflate(LayoutInflater.java:492)   at android.view.LayoutInflater.inflate(LayoutInflater.java:373) Copy stack to clipboard Turn off custom view rendering sandbox Diagnostic info for Studio bug report: Failed path: \data\data\null\cache\uil-images Normal temp dir: C:\Users\ADMINI~1\AppData\Local\Temp\ Normalized temp dir: C:\Users\ADMINI~1\AppData\Local\Temp Canonical temp dir: C:\Users\Administrator\AppData\Local\Temp os.name: Windows 8 os.version: 6.2 java.runtime.version: 1.7.0_75-b13
...全文

相关推荐

评论 2
收藏 已收藏
分享
返回顶部
yinzelin111
Android 80,490 成员 91,375 内容