Git Product home page Git Product logo

Comments (5)

dev-saikumar avatar dev-saikumar commented on August 17, 2024

same error failed to debug when i remove this dependency it works fine i have FireBase also i have done every thing said in documentation but failed to debug

from flutter_downloader.

idrats avatar idrats commented on August 17, 2024

You can add
dependencies { ... api "android.arch.lifecycle:runtime:1.1.1" }
to app/build.gradle

as written on stackoverflow: https://stackoverflow.com/questions/50012822/android-architecture-components-gradle-sync-error-for-dependency-version

But unfortunately this is not solved all problems. After that I got the following error:

import androidx.localbroadcastmanager.content.LocalBroadcastManager;
                                             ^
/Users/idrats/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_downloader-1.1.6/android/src/main/java/vn/hunghd/flutterdownloader/FlutterDownloaderPlugin.java:12: error: package androidx.localbroadcastmanager.content does not exist
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
                                             ^
/Users/idrats/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_downloader-1.1.6/android/src/main/java/vn/hunghd/flutterdownloader/DownloadWorker.java:342: error: cannot find symbol
        LocalBroadcastManager.getInstance(context).sendBroadcast(intent);
        ^
  symbol:   variable LocalBroadcastManager
  location: class DownloadWorker
/Users/idrats/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_downloader-1.1.6/android/src/main/java/vn/hunghd/flutterdownloader/FlutterDownloaderPlugin.java:105: error: cannot find symbol
            LocalBroadcastManager.getInstance(context).registerReceiver(updateProcessEventReceiver,
            ^
  symbol:   variable LocalBroadcastManager
  location: class FlutterDownloaderPlugin
/Users/idrats/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_downloader-1.1.6/android/src/main/java/vn/hunghd/flutterdownloader/FlutterDownloaderPlugin.java:123: error: cannot find symbol
            LocalBroadcastManager.getInstance(context).unregisterReceiver(updateProcessEventReceiver);
            ^
  symbol:   variable LocalBroadcastManager
  location: class FlutterDownloaderPlugin
5 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':flutter_downloader:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* 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 4s

from flutter_downloader.

idrats avatar idrats commented on August 17, 2024

I have finally figured it out
look at the answer here:
#42
it solves the problem

from flutter_downloader.

zerohh avatar zerohh commented on August 17, 2024

@idrats thank you so much,it works

from flutter_downloader.

hnvn avatar hnvn commented on August 17, 2024

Duplicate of #44

from flutter_downloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.