0

I wanted to write a code that runs in the background and so I copied the code ( including packages ) from the dev for Flutter_Background_Servie into my project. When trying to run the code I get the following two error messages:

  • What went wrong: Execution failed for task ':flutter_background_service_android:compileDebugAidl'.

A failure occurred while executing com.android.build.gradle.tasks.AidlCompile$AidlCompileRunnable

and

Execution failed for task ':app:processDebugMainManifest'.

I also get the error message when I just write the packages in pubspec.yaml and run the dummy code from flutter.

error includes packages: flutter_background_service 2.4.6 flutter_background_service_android

My setup looks like this: in android/build.gradle classpath 'com.android.tools.build:gradle:7.3.0' in android/gradle/wrapper/gradle-wrapper.properties distributionUrl=https://services.gradle.org/distribution/gradle-7.5-all.zip

My Flutter/Dart has the version: Flutter 3.8.0-15.0.pre.30 / Dart 3.0.0

HELP, how do I get the packages to run?

I have tried:

  • flutter pub upgrade
  • flutter clean
  • flutter pub get
  • flutter doctor (no problems found)
  • restart VS Code
  • remove one of the two packages at a time. but the error occurs with both.
Ekitabo
  • 1
  • 1

0 Answers0