Zzbfm not found

I have a problem compiling the Ionic app for Android. While compiling it I get an error:

Task :app:mergeDebugResources

Task :app:createDebugCompatibleScreenManifests

Task :app:processDebugManifest

Task :app:processDebugResources

Task :app:compileDebugJavaWithJavac platforms/android/app/src/main/java/com/marianhello/bgloc/data/BackgroundActivity.java:20:

error: cannot access zzbfm
confidence = activity.getConfidence();

                 ^   class file for com.google.android.gms.internal.zzbfm not found Note: Some input files

use or override a deprecated API. Note: Recompile with

-Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for
details. 1 error

Task :app:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

Is it possible somehow to import com.google.android.gms.internal.zzbfm or maybe there is some other workaround with it?