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

App Crashed #30

Open
amolk1036 opened this issue Oct 24, 2023 · 8 comments
Open

App Crashed #30

amolk1036 opened this issue Oct 24, 2023 · 8 comments

Comments

@amolk1036
Copy link

Flutter 3.3.10 • channel stable

  • Plugin version:^1.0.1
  • Platform: Android
  • OS version: Windows
  • Device manufacturer / model: Samsung
  • Flutter info (
  • Flutter 3.3.10 • channel stable • https://github.com/flutter/flutter.git Framework • revision 135454af32 (10 months ago) • 2022-12-15 07:36:55 -0800 Engine • revision 3316dd8728 Tools • Dart 2.18.6 • DevTools 2.15.0, `

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.`):

  • Plugin config

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

  • ios XCode logs,
  • Android: $ adb logcat

Additional context
Add any other context about the problem here.

@christocracy
Copy link
Member

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
Copy link
Author

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
Copy link
Member

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
Copy link
Author

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.

  • What went wrong:
    Execution failed for task ':background_fetch:verifyReleaseResources'.

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:C:\Users\amolk.gradle\caches\transforms-3\fb56ffe1a5540877108babcfb2286bfd\transformed\core-1.7.0\res\values\values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.

  • 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.

BUILD FAILED in 40s

@christocracy
Copy link
Member

Post your android/build.gradle

@amolk1036
Copy link
Author

amolk1036 commented Oct 24, 2023

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
Copy link
Member

christocracy commented Oct 24, 2023

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

@amolk1036
Copy link
Author

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

tracking_app.zip

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

2 participants