GithubHelp home page GithubHelp logo

运行后界面直接黑屏 about camera2 HOT 8 OPEN

xuehu54321 avatar xuehu54321 commented on August 16, 2024
运行后界面直接黑屏

from camera2.

Comments (8)

pinguo-yuyidong avatar pinguo-yuyidong commented on August 16, 2024

app还是camera2?

from camera2.

xuehu54321 avatar xuehu54321 commented on August 16, 2024

都是这样的,应该是Preview时失败了,加了mTextureView.setLayerType(View.LAYER_TYPE_HARDWARE, null);依然没解决问题

screenshot

from camera2.

pinguo-yuyidong avatar pinguo-yuyidong commented on August 16, 2024

可能问题在者:A TextureView or a subclass can only be used with hardware acceleration enabled.
解决方法:http://developer.android.com/intl/zh-cn/guide/topics/graphics/hardware-accel.html

from camera2.

xuehu54321 avatar xuehu54321 commented on August 16, 2024

应该就是这个问题,但加了mTextureView.setLayerType(View.LAYER_TYPE_HARDWARE, null);依然没解决问题,好郁闷,其他设置硬件加速的方式也试过了,依然无效,N5、一加手机都是一样的

from camera2.

pinguo-yuyidong avatar pinguo-yuyidong commented on August 16, 2024

我也是N5啊。。。为啥我没问题啊。。。

from camera2.

xuehu54321 avatar xuehu54321 commented on August 16, 2024

你的系统版本是5.0.2吗?

from camera2.

xuehu54321 avatar xuehu54321 commented on August 16, 2024

貌似是我build tool的版本低了,我升级下试试

from camera2.

pinguo-yuyidong avatar pinguo-yuyidong commented on August 16, 2024

5.0
classpath 'com.android.tools.build:gradle:1.0.0'

from camera2.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.