Open amolk1036 opened 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.
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
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.
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.
Get more help at https://help.gradle.org
BUILD FAILED in 40s
Post your android/build.gradle
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
}
Why did you choose to ignore one of the first instructions of the Android Setup Guide for background_geolocation
?
I have follow all steps mentioned above still issue is coming , i have attached my project file below please look once .
Flutter 3.3.10 • channel stable
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.`):
To Reproduce Steps to reproduce the behavior:
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
$ adb logcat
Additional context Add any other context about the problem here.