当前位置:   article > 正文

java.lang.UnsupportedOperationException: TextureView doesn‘t support displaying a background drawabl_textureview doesn't support displaying a backgroun

textureview doesn't support displaying a background drawable

具体错误

  1. Caused by: java.lang.UnsupportedOperationException: TextureView doesn't support displaying a background drawable
  2. 2021-11-01 20:17:29.248 19010-19010/com.serenegiant.usbcameratest E/AndroidRuntime:
  3. at android.view.TextureView.setBackgroundDrawable(TextureView.java:328)
  4. at android.view.View.setBackground(View.java:23882)
  5. at android.view.View.<init>(View.java:6080)
  6. at android.view.View.<init>(View.java:5468)
  7. at android.view.TextureView.<init>(TextureView.java:167)
  8. at com.serenegiant.widget.SimpleUVCCameraTextureView.<init>(SimpleUVCCameraTextureView.java:50)
  9. at com.serenegiant.widget.SimpleUVCCameraTextureView.<init>(SimpleUVCCameraTextureView.java:46)

解决办法:

找到对应的布局xml,把TextureView的background一句删除即可。

原因就是现在不支持了。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/235483
推荐阅读
相关标签
  

闽ICP备14008679号