transistorsoft / react-native-background-fetch

Periodic callbacks in the background for both IOS and Android
MIT License
1.45k stars 191 forks source link

background_fetch : Could not determine the dependencies of task ':app:minifyReleaseWithR8' #298

Closed kyounglee closed 3 years ago

kyounglee commented 3 years ago

Your Environment

Expected Behavior

build app successfully

Actual Behavior

Steps to Reproduce

  1. include background_fetch module. (add background_fetch: ^0.6.0 to pubspec.xml)
  2. insert example code of background_fetch into my main.dart like this: (I didn't do anything except that)

:: import 'package:background_fetch/background_fetch.dart'; ::

void backgroundFetchHeadlessTask(String taskId) async { print('=== [BackgroundFetch] Headless event received.'); BackgroundFetch.finish(taskId); }

Future main() async { :: :: BackgroundFetch.registerHeadlessTask(backgroundFetchHeadlessTask); }

  1. After that, build step produces FAILURE.

FAILURE: Build failed with an exception.

BUILD FAILED in 31s Running Gradle task 'bundleRelease'... 32.4s Gradle task bundleRelease failed with exit code 1 Process finished with exit code 1

Context

I'd like to know the next step to overcome this failure.

Debug logs

christocracy commented 3 years ago

Please search existing issues for your error before posting a new issue. Duplicate #297