赞
踩
具体错误
- Caused by: java.lang.UnsupportedOperationException: TextureView doesn't support displaying a background drawable
- 2021-11-01 20:17:29.248 19010-19010/com.serenegiant.usbcameratest E/AndroidRuntime:
- at android.view.TextureView.setBackgroundDrawable(TextureView.java:328)
- at android.view.View.setBackground(View.java:23882)
- at android.view.View.<init>(View.java:6080)
- at android.view.View.<init>(View.java:5468)
- at android.view.TextureView.<init>(TextureView.java:167)
- at com.serenegiant.widget.SimpleUVCCameraTextureView.<init>(SimpleUVCCameraTextureView.java:50)
- at com.serenegiant.widget.SimpleUVCCameraTextureView.<init>(SimpleUVCCameraTextureView.java:46)
解决办法:
找到对应的布局xml,把TextureView的background一句删除即可。
原因就是现在不支持了。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。