transistorsoft / flutter_background_geolocation_firebase

Firebase proxy for Flutter Background Geolocation SDK
MIT License
21 stars 7 forks source link

App Crashed #30

Open amolk1036 opened 10 months ago

amolk1036 commented 10 months ago

Flutter 3.3.10 • channel stable

Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.22621.2428], locale en-IN) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc1) [√] Chrome - develop for the web [X] Visual Studio - develop for Windows X Visual Studio not installed; this is necessary for Windows development. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components [!] Android Studio (version 2021.3) X Unable to determine bundled Java version. [!] Android Studio (version 2022.1) X Unable to find bundled Java version. [√] VS Code (version 1.83.1) [√] Connected device (4 available) [√] HTTP Host Availability

! Doctor found issues in 3 categories.`):

To Reproduce Steps to reproduce the behavior:

  1. Integrate standard firebase plugins along with background_geolocation_firebase 2.import packages cupertino_icons: ^1.0.2 background_geolocation_firebase: ^1.0.1 flutter_background_geolocation: ^4.13.3

    firebase_database: ^8.0.0 firebase_core: ^1.5.0 firebase_core_platform_interface: 4.5.1 cloud_firestore: ^3.5.1

3.Run project

Debug logs

Additional context Add any other context about the problem here.

christocracy commented 10 months ago

If you have a crash, why are you not posting the stacktrace??

Without a stacktrace, there's no evidence that this plug-in is at-fault.

amolk1036 commented 10 months ago

Without standard Firebase plugins app work fine but with these packages it not work firebase_database: ^8.0.0 firebase_core: ^1.5.0 firebase_core_platform_interface: 4.5.1 cloud_firestore: ^3.5.1

and i have integrated above packages in other project thats working . but these packages along with background_geolocation_firebase: ^1.0.1 flutter_background_geolocation: ^4.13.3 not working

christocracy commented 10 months ago

That's not evidence. It's not hard to provide a stacktrace. There's always a stacktrace when there's a crash.

When you have a crash, the first thing to do -- before seeking support -- is get your stacktrace.

amolk1036 commented 10 months ago

Actually am new here i dont know how to get stacktrace report. but while am building project following error am facing.

Note: C:\Users\amolk\AppData\Local\Pub\Cache\git\flutter_background_geolocation_firebase-85e668a29a36d393e583ba81ccf193984e16432c\android\src\main\java\com\transistorsoft\flutter\backgroundgeolocation\BackgroundGeolocationFirebasePlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

BUILD FAILED in 40s

christocracy commented 10 months ago

Post your android/build.gradle

amolk1036 commented 10 months ago

my android/build.graddle

buildscript {
    ext.kotlin_version = '1.7.10'
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:7.1.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.google.gms:google-services:4.3.13'
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
        maven {
            // [required] background_geolocation_firebase
            url "${project(':background_geolocation_firebase').projectDir}/libs"
        }
        maven {
            // [required] flutter_background_geolocation
            url "${project(':flutter_background_geolocation').projectDir}/libs"
        }
        maven {
            // [required] background_fetch
            url "${project(':background_fetch').projectDir}/libs"
        }
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
christocracy commented 10 months ago

Why did you choose to ignore one of the first instructions of the Android Setup Guide for background_geolocation?

amolk1036 commented 10 months ago

I have follow all steps mentioned above still issue is coming , i have attached my project file below please look once .

tracking_app.zip