transistorsoft / cordova-background-geolocation-firebase

Firebase Adapter for Cordova Background Geolocation
MIT License
7 stars 5 forks source link

Build Failed #8

Closed lnegi52 closed 5 years ago

lnegi52 commented 5 years ago

BUILD FAILED in 5s /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/gradlew: Command failed with exit code 1 Error output: Note: /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemCookieManager.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/app/src/main/java/com/transistorsoft/cordova/bggeo/CDVBackgroundGeolocationFirebase.java:3: error: package com.transistorsoft.locationmanager.logger does not exist import com.transistorsoft.locationmanager.logger.TSLog; ^ /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/app/src/main/java/com/transistorsoft/cordova/bggeo/CDVBackgroundGeolocationFirebase.java:29: error: cannot find symbol TSLog.logger.info(TSLog.info("[Firebase] $ " + action)); ^ symbol: variable TSLog location: class CDVBackgroundGeolocationFirebase /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/app/src/main/java/com/transistorsoft/cordova/bggeo/CDVBackgroundGeolocationFirebase.java:29: error: package TSLog does not exist TSLog.logger.info(TSLog.info("[Firebase] $ " + action)); ^ /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/app/src/main/java/com/transistorsoft/cordova/bggeo/CDVBackgroundGeolocationFirebase.java:39: error: cannot find symbol TSLog.logger.info(TSLog.info("[Firebase] - configure: " + options)); ^ symbol: variable TSLog location: class CDVBackgroundGeolocationFirebase /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/app/src/main/java/com/transistorsoft/cordova/bggeo/CDVBackgroundGeolocationFirebase.java:39: error: package TSLog does not exist TSLog.logger.info(TSLog.info("[Firebase] - configure: " + options)); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 5 errors

FAILURE: Build failed with an exception.

christocracy commented 5 years ago

Did you read the issue-template before deleting it? Closing for ignoring issue template.

christocracy commented 5 years ago

Your Environment

Expected Behavior

Actual Behavior

Steps to Reproduce

1. 2. 3. 4.

Context

Debug logs

Logs ``` PASTE_YOUR_LOGS_HERE ```
lnegi52 commented 5 years ago

Plugin version:0.1.0 Platform: Android OS version: Mac Os HighSierra Device manufacturer / model: Apple/ iMac (21.5-inch, 2017) Cordova version (cordova -v): 9.0.0 Cordova platform version (cordova platform ls): 8.0.0 Plugin config provided to #ready:

Code: ts File: ionViewDidLoad() { this.platform.ready().then(() => { this.configureBackgroundGeolocation(); }); } configureBackgroundGeolocation() { let bgGeoFirebase = (window).BackgroundGeolocationFirebase;

bgGeoFirebase.configure({
  locationsCollection: "locations",
  geofencesCollection: "geofences"
});

let bgGeo = (<any>window).BackgroundGeolocation;

bgGeo.on("location", location => {
  console.log("[location] - ", location);
});

bgGeo.ready(
  {
    stopOnTerminate: false,
    debug: true
  },
  state => {
    if (!state.enabled) {
      bgGeo.start();
    }
  }
);

}

Expected Behavior Actual Behavior Steps to Reproduce Context Debug logs Logs

Task :app:createDebugCompatibleScreenManifests Task :app:processDebugManifest Task :app:processDebugResources

Task :app:compileDebugJavaWithJavac FAILED 26 actionable tasks: 26 executed /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/app/src/main/java/com/transistorsoft/cordova/bggeo/CDVBackgroundGeolocationFirebase.java:3: error: package com.transistorsoft.locationmanager.logger does not exist import com.transistorsoft.locationmanager.logger.TSLog; ^ /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/app/src/main/java/com/transistorsoft/cordova/bggeo/CDVBackgroundGeolocationFirebase.java:29: error: cannot find symbol TSLog.logger.info(TSLog.info("[Firebase] $ " + action)); ^ symbol: variable TSLog location: class CDVBackgroundGeolocationFirebase /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/app/src/main/java/com/transistorsoft/cordova/bggeo/CDVBackgroundGeolocationFirebase.java:29: error: package TSLog does not exist TSLog.logger.info(TSLog.info("[Firebase] $ " + action)); ^ /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/app/src/main/java/com/transistorsoft/cordova/bggeo/CDVBackgroundGeolocationFirebase.java:39: error: cannot find symbol TSLog.logger.info(TSLog.info("[Firebase] - configure: " + options)); ^ symbol: variable TSLog location: class CDVBackgroundGeolocationFirebase /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/app/src/main/java/com/transistorsoft/cordova/bggeo/CDVBackgroundGeolocationFirebase.java:39: error: package TSLog does not exist TSLog.logger.info(TSLog.info("[Firebase] - configure: " + options)); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 5 errors

FAILURE: Build failed with an exception.

BUILD FAILED in 5s /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/gradlew: Command failed with exit code 1 Error output: Note: /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemCookieManager.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/app/src/main/java/com/transistorsoft/cordova/bggeo/CDVBackgroundGeolocationFirebase.java:3: error: package com.transistorsoft.locationmanager.logger does not exist import com.transistorsoft.locationmanager.logger.TSLog; ^ /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/app/src/main/java/com/transistorsoft/cordova/bggeo/CDVBackgroundGeolocationFirebase.java:29: error: cannot find symbol TSLog.logger.info(TSLog.info("[Firebase] $ " + action)); ^ symbol: variable TSLog location: class CDVBackgroundGeolocationFirebase /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/app/src/main/java/com/transistorsoft/cordova/bggeo/CDVBackgroundGeolocationFirebase.java:29: error: package TSLog does not exist TSLog.logger.info(TSLog.info("[Firebase] $ " + action)); ^ /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/app/src/main/java/com/transistorsoft/cordova/bggeo/CDVBackgroundGeolocationFirebase.java:39: error: cannot find symbol TSLog.logger.info(TSLog.info("[Firebase] - configure: " + options)); ^ symbol: variable TSLog location: class CDVBackgroundGeolocationFirebase /Users/webgarhsolutions/Desktop/rohit/backgroundfirebasegeo/platforms/android/app/src/main/java/com/transistorsoft/cordova/bggeo/CDVBackgroundGeolocationFirebase.java:39: error: package TSLog does not exist TSLog.logger.info(TSLog.info("[Firebase] - configure: " + options)); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 5 errors

FAILURE: Build failed with an exception.

BUILD FAILED in 5s [ERROR] An error occurred while running subprocess cordova.

    cordova build android --device exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.
christocracy commented 5 years ago
$ cordova plugins
lnegi52 commented 5 years ago

cordova-background-geolocation-firebase 0.1.0 "CDVBackgroundGeolocationFirebase" cordova-plugin-device 2.0.2 "Device" cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard" cordova-plugin-ionic-webview 4.1.1 "cordova-plugin-ionic-webview" cordova-plugin-splashscreen 5.0.2 "Splashscreen" cordova-plugin-statusbar 2.4.2 "StatusBar" cordova-plugin-whitelist 1.3.3 "Whitelist" cordova-support-google-services 1.3.1 "cordova-support-google-services"

christocracy commented 5 years ago

You haven’t installled cordova-background-geolocation

The Firebase plugin is a companion plugin for background Geolocation.