transistorsoft / cordova-background-geolocation-lt

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
http://www.transistorsoft.com/shop/products/cordova-background-geolocation
Other
655 stars 277 forks source link

:app:checkDebugDuplicateClasses #1329

Closed ramandeepR closed 2 years ago

ramandeepR commented 2 years ago

Your Environment

Expected Behavior

It should need to be run the application

Actual Behavior

Application fails while trying to run due to duplicate class issue

Steps to Reproduce

  1. Just follow the steps as guided in documentation for android implementation
  2. Run on any simulator, and got the duplicate class issue

Context

I am trying to integrate the plugin to track the position when application in background mode.

Debug logs

Logs ``` Duplicate class com.intentfilter.androidpermissions.BuildConfig found in modules jetified-android-permissions-0.1.7-runtime (com.intentfilter:android-permissions:0.1.7) and jetified-android-permissions-0.1.8-runtime (io.github.nishkarsh:android-permissions:0.1.8) Duplicate class com.intentfilter.androidpermissions.NotificationDismissReceiver found in modules jetified-android-permissions-0.1.7-runtime (com.intentfilter:android-permissions:0.1.7) and jetified-android-permissions-0.1.8-runtime (io.github.nishkarsh:android-permissions:0.1.8) Duplicate class com.intentfilter.androidpermissions.PermissionHandler found in modules jetified-android-permissions-0.1.7-runtime (com.intentfilter:android-permissions:0.1.7) and jetified-android-permissions-0.1.8-runtime (io.github.nishkarsh:android-permissions:0.1.8) Duplicate class com.intentfilter.androidpermissions.PermissionManager found in modules jetified-android-permissions-0.1.7-runtime (com.intentfilter:android-permissions:0.1.7) and jetified-android-permissions-0.1.8-runtime (io.github.nishkarsh:android-permissions:0.1.8) Duplicate class com.intentfilter.androidpermissions.PermissionManager$PermissionRequestListener found in modules jetified-android-permissions-0.1.7-runtime (com.intentfilter:android-permissions:0.1.7) and jetified-android-permissions-0.1.8-runtime (io.github.nishkarsh:android-permissions:0.1.8) Duplicate class com.intentfilter.androidpermissions.PermissionsActivity found in modules jetified-android-permissions-0.1.7-runtime (com.intentfilter:android-permissions:0.1.7) and jetified-android-permissions-0.1.8-runtime (io.github.nishkarsh:android-permissions:0.1.8) Duplicate class com.intentfilter.androidpermissions.helpers.AppStatus found in modules jetified-android-permissions-0.1.7-runtime (com.intentfilter:android-permissions:0.1.7) and jetified-android-permissions-0.1.8-runtime (io.github.nishkarsh:android-permissions:0.1.8) Duplicate class com.intentfilter.androidpermissions.helpers.Logger found in modules jetified-android-permissions-0.1.7-runtime (com.intentfilter:android-permissions:0.1.7) and jetified-android-permissions-0.1.8-runtime (io.github.nishkarsh:android-permissions:0.1.8) Duplicate class com.intentfilter.androidpermissions.services.BroadcastService found in modules jetified-android-permissions-0.1.7-runtime (com.intentfilter:android-permissions:0.1.7) and jetified-android-permissions-0.1.8-runtime (io.github.nishkarsh:android-permissions:0.1.8) Duplicate class com.intentfilter.androidpermissions.services.BroadcastService$IntentAction found in modules jetified-android-permissions-0.1.7-runtime (com.intentfilter:android-permissions:0.1.7) and jetified-android-permissions-0.1.8-runtime (io.github.nishkarsh:android-permissions:0.1.8) Duplicate class com.intentfilter.androidpermissions.services.NotificationService found in modules jetified-android-permissions-0.1.7-runtime (com.intentfilter:android-permissions:0.1.7) and jetified-android-permissions-0.1.8-runtime (io.github.nishkarsh:android-permissions:0.1.8) ```
christocracy commented 2 years ago

Post your package.json

ramandeepR commented 2 years ago

Here is the package.json file.

{
  "name": "**** -****",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "https://ionicframework.com/",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/common": "~12.1.1",
    "@angular/core": "~12.1.1",
    "@angular/forms": "~12.1.1",
    "@angular/platform-browser": "~12.1.1",
    "@angular/platform-browser-dynamic": "~12.1.1",
    "@angular/router": "~12.1.1",
    "@awesome-cordova-plugins/background-geolocation": "^5.37.3",
    "@awesome-cordova-plugins/background-mode": "^5.37.3",
    "@awesome-cordova-plugins/battery-status": "^5.37.3",
    "@awesome-cordova-plugins/core": "^5.37.1",
    "@awesome-cordova-plugins/device": "^5.37.3",
    "@awesome-cordova-plugins/foreground-service": "^5.37.3",
    "@awesome-cordova-plugins/geolocation": "^5.37.3",
    "@awesome-cordova-plugins/sqlite": "^5.37.3",
    "@capacitor-community/background-geolocation": "1.0.4",
    "@capacitor/android": "^3.3.3",
    "@capacitor/app": "1.0.7",
    "@capacitor/core": "3.3.3",
    "@capacitor/geolocation": "^1.3.0",
    "@capacitor/haptics": "1.1.3",
    "@capacitor/keyboard": "1.2.0",
    "@capacitor/status-bar": "1.0.6",
    "@ionic-native/background-mode": "^5.36.0",
    "@ionic-native/battery-status": "^5.36.0",
    "@ionic-native/core": "^5.36.0",
    "@ionic-native/device": "^5.36.0",
    "@ionic-native/geolocation": "^5.36.0",
    "@ionic-native/sqlite": "^5.36.0",
    "@ionic/angular": "^5.9.2",
    "@mauron85/cordova-plugin-background-geolocation": "^3.1.0",
    "@transistorsoft/capacitor-background-fetch": "0.0.6",
    "@transistorsoft/capacitor-background-geolocation": "^4.4.3",
    "cordova-plugin-background-mode": "^0.7.3",
    "cordova-plugin-battery-status": "^2.0.3",
    "cordova-plugin-device": "^2.0.3",
    "cordova-plugin-foreground-service": "^1.1.3",
    "cordova-plugin-geolocation": "^4.1.0",
    "cordova-sqlite-storage": "^6.0.0",
    "rxjs": "~6.6.0",
    "tslib": "^2.2.0",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~12.1.1",
    "@angular-eslint/builder": "~12.0.0",
    "@angular-eslint/eslint-plugin": "~12.0.0",
    "@angular-eslint/eslint-plugin-template": "~12.0.0",
    "@angular-eslint/template-parser": "~12.0.0",
    "@angular/cli": "~12.1.1",
    "@angular/compiler": "~12.1.1",
    "@angular/compiler-cli": "~12.1.1",
    "@angular/language-service": "~12.0.1",
    "@capacitor/cli": "3.3.3",
    "@ionic/angular-toolkit": "^4.0.0",
    "@types/jasmine": "~3.6.0",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "^12.20.37",
    "@typescript-eslint/eslint-plugin": "4.16.1",
    "@typescript-eslint/parser": "4.16.1",
    "eslint": "^7.6.0",
    "eslint-plugin-import": "2.22.1",
    "eslint-plugin-jsdoc": "30.7.6",
    "eslint-plugin-prefer-arrow": "1.2.2",
    "jasmine-core": "~3.8.0",
    "jasmine-spec-reporter": "~5.0.0",
    "jetifier": "^2.0.0",
    "karma": "^6.3.9",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.0.3",
    "karma-coverage-istanbul-reporter": "~3.0.2",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "^1.5.0",
    "protractor": "~7.0.0",
    "ts-node": "~8.3.0",
    "typescript": "^4.2.4"
  },
  "description": "An Ionic project"
}
christocracy commented 2 years ago

What a mess.

get rid of these:

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

stale[bot] commented 2 years ago

Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.