Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class file for com.google.android.gms.internal.zzbfm not found #40

Open
nonamez opened this issue Jan 9, 2020 · 7 comments
Open

class file for com.google.android.gms.internal.zzbfm not found #40

nonamez opened this issue Jan 9, 2020 · 7 comments

Comments

@nonamez
Copy link

nonamez commented Jan 9, 2020

Cant compile, getting this error:

BUILD FAILED in 49s
26 actionable tasks: 22 executed, 4 up-to-date
platforms/android/gradlew: Command failed with exit code 1 Error output:
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.

@jongomes
Copy link

I have the same problem

@vishavjeetnokhwal
Copy link

1

@vishnuvardhana
Copy link

Hello all, Do we have a fix for it ? 1 as well.

@vishnuvardhana
Copy link

Guys any solution for this ?

@risinghero
Copy link

risinghero commented Sep 2, 2020

Good day. There are two solutions:

  1. Install this plugin
  2. Manually edit file platforms>android>project.properties and specify versions for com.google.android.gms like this

cordova.system.library.1=com.google.android.gms:play-services-location:11.0.4
cordova.system.library.2=com.android.support:support-v4:27.0.2
cordova.system.library.3=com.android.support:appcompat-v7:27.0.2
cordova.gradle.include.1=cordova-plugin-background-geolocation/quickrun-dependencies.gradle
cordova.system.library.4=com.android.support:support-v4:27.0.2
cordova.system.library.5=com.android.support:support-v4:27.0.2
cordova.system.library.6=com.google.android.gms:play-services-analytics:11.0.4

You need bold rows.

@adelynx
Copy link

adelynx commented Mar 2, 2021

Same problem here with another issue:

src/main/java/com/marianhello/bgloc/data/BackgroundActivity.java:18: error: cannot find symbol
    public BackgroundActivity(Integer locationProvider, DetectedActivity activity) {
                                                        ^
  symbol:   class DetectedActivity
  location: class BackgroundActivity

@seltix5
Copy link

seltix5 commented Feb 27, 2023

Good day. There are two solutions:

  1. Install this plugin
  2. Manually edit file platforms>android>project.properties and specify versions for com.google.android.gms like this

hello, I try this but did not work. I installed the plugin but I do not have any project.properties file. I'm using ionic 6.
Any tips?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants