AB1102
AB1102

Reputation: 15

PreviewView isn't available in my AndroidStudio?

I am attempting to implement a basic camera application using a PreviewView. However, in my android studio, PreviewViews aren't listed. Any suggestions as to how to find it? Or potential workarounds?

PreviewView not

Dependencies

Many thanks, Alex

Upvotes: 1

Views: 1556

Answers (1)

AgentP
AgentP

Reputation: 7220

You need to add camera-view dependency in your build.gradle file like this

implementation 'androidx.camera:camera-view:1.0.0-alpha26'

Upvotes: 2

Related Questions