question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build failure since missing androidx.localbroadcastmanager.content.LocalBroadcastManager

See original GitHub issue

Build failure:

flutter_downloader-1.1.6/android/src/main/java/vn/hunghd/flutterdownloader/DownloadWorker.java:13: error: package androidx.localbroadcastmanager.content does not exist
import androidx.localbroadcastmanager.content.LocalBroadcastManager;

As I know, LocalBoardcastManager will be removed from androidx. https://developer.android.com/jetpack/androidx/releases/localbroadcastmanager

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
hnvncommented, Feb 16, 2019

I’ve tried to use my plugin in my own project, it works well. If you have any problems, they might come from AndroidX migration. You should follow the official document about AndroidX. There’re some my suggestion:

  • change compileSdkVersion and targetSdkVersion to 28
  • add following codes to gradle.properties
android.useAndroidX=true
android.enableJetifier=true
  • upgrade com.android.tools.build:gradle to 3.3.1 (the newest)
dependencies {
        classpath 'com.android.tools.build:gradle:3.3.1'
    }
  • gradle-wrappter.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
0reactions
furkanuzundevcommented, Oct 10, 2019

@hnvn The solution is worked for me, Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can not resolve import LocalBroadcastManager on statement ...
It shows a suggestion Add library Gradle: com.android.support:support-core-utils-27.1.1 to classpath. I have added the library in my build.
Read more >
Landroidx/localbroadcastmanager/content ... - Cpming
IssueIn the androidx project, I write these code as bellow.LocalBroadcastManager mgr = LocalBroadcastManager.getInstance(context);After ...
Read more >
Localbroadcastmanager - Android Developers
Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues...
Read more >
Android Studio 3.5 Canary 13 - Visible to Public
R8: Missing class: com.android.installreferrer.api. ... FAILURE: Build failed with an exception. ... at com.android.build.gradle.internal.transforms.
Read more >
Bug - Unity Cloud Build failed on mediation
But for about a week I'm experiencing a problem with building my android game on Unity Cloud Build with mediation package installed. My...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found