Cordova-plugin-firebasex: Buid failed with plugin @mauron85/cordova-plugin-background-geolocation

Created on 22 Jan 2020  路  1Comment  路  Source: dpa99c/cordova-plugin-firebasex

After added the plugin, build failed and investigated for a day, i finally found that this plugin doesn't work with plugin @mauron85/cordova-plugin-background-geolocation. If i removed one of either cordova-plugin-background-geolocation or firebasex, it built successfully.

Below is the error message. Appreciate if you could guide me what i should do. Thanks.

Task :app:compileDebugJavaWithJavac
C:\Users\ekoha\Documents\Vue\reecargo-driver\cordova_app2\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.

  • What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1m 29s
33 actionable tasks: 33 executed
C:\Users\ekoha\Documents\Vue\reecargo-driver\cordova_app2\platforms\android\gradlew: Command failed with exit code 1 Error output:
C:\Users\ekoha\Documents\Vue\reecargo-driver\cordova_app2\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

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1m 29s

Most helpful comment

I reported the issue too soon, i found it on their git issues, and it has already discussions about this issue. Found the solution, just install cordova plugin add cordova-android-play-services-gradle-release. And it works now. Thanks.

>All comments

I reported the issue too soon, i found it on their git issues, and it has already discussions about this issue. Found the solution, just install cordova plugin add cordova-android-play-services-gradle-release. And it works now. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Akz47 picture Akz47  路  6Comments

JumBay picture JumBay  路  7Comments

marcelonnunes picture marcelonnunes  路  3Comments

dpa99c picture dpa99c  路  4Comments

tux240 picture tux240  路  3Comments