android studio 编译器无法识别 GraphicOverlay class

GraphicOverlay class is't recognized by android studio compiler

最近在用Ocr做文字识别,想实现GraphicOverlay对象,编译器不识别。 我需要做什么?

First you need to register your application details like name and package name on firebase console, after creating you can download google-services.json file, keep the file inside your app folder.

add below libraries on app build.gradle file
implementation 'com.google.firebase:firebase-core:16.0.0'
implementation 'com.google.firebase:firebase-ml-vision:16.0.0'

Go to Tools -> click on Firebase, please connect your project with firebase via Firebase Assistant. 

Try to clean and build project once. 

that's it.