TextureView requires hardwareAccelerated enable

Published May 02, 2018Last updated May 14, 2018

Today i learned a new thing in Android. I am playing videos with > TextureView. But it doesnt play, It causing following error in LOG :

A TextureView or a subclass can only be used with hardware acceleration enabled.

reason I disabled hardwareAccelerated Application level like :

android:hardwareAccelerated="false".... </application>

I tried to enable android:hardwareAccelerated="true" activity level :


But it fails. So we must enable hardwareAccelerated App level.

Hope this helps someone who faced same issue. If you have any better solutions then you can share. Happy codding 😃

Discover and read more posts from Hardik Joshi
get started