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.

Package doesn't exist error android

See original GitHub issue

This error is thrown while building the app for android

\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:20: error: package vn.hunghd.flutterdownloader does not exist
    flutterEngine.getPlugins().add(new vn.hunghd.flutterdownloader.FlutterDownloaderPlugin());
     
```                                                             ^
 
using latest version of plugin and flutter.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

2reactions
Dalakoti07commented, Nov 2, 2022

I am also facing same issue with 3.3.0

1reaction
cvalabcommented, Nov 7, 2022

My solution

  1. Comment

     <!-- declare customized Initializer -->
     <!-- <provider
         android:name="vn.hunghd.flutterdownloader.FlutterDownloaderInitializer"
         android:authorities="${applicationId}.flutter-downloader-init"
         android:exported="false">
         <meta-data
             android:name="vn.hunghd.flutterdownloader.MAX_CONCURRENT_TASKS"
             android:value="5" />
     </provider>-->
    
  2. Remove buildscript { repositories { // … maven { url ‘https://plugins.gradle.org/m2/’ } // Gradle Plugin Portal } dependencies { // … // OneSignal-Gradle-Plugin classpath ‘gradle.plugin.com.onesignal:onesignal-gradle-plugin:0.12.8’ } }

apply plugin: ‘com.onesignal.androidsdk.onesignal-gradle-plugin’

  1. Change distributionUrl=https://services.gradle.org/distributions/gradle-6.7.1-all.zip to distributionUrl=https://services.gradle.org/distributions/gradle-7.4-all.zip

  2. Change maven { url ‘https://maven.google.com’ } to google()

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Studio library "error: package does not exist"
This error happens when you change the package name and try to run the code. this occurs because the android studio still has...
Read more >
How To Fix R Error: package r does not exist - ProgrammingR
The most common solution is to clean your Android project and then rebuild it. To do this find “build” on the menu in...
Read more >
package does not exist - android build fail · Issue #171 - GitHub
I had the issue as not having imported, but it was used in the onCreate. import android.os.Bundle; ...
Read more >
error: package android.support.annotation does not exist
Learn how to fix package android.support.annotation does not exist error when building your application.
Read more >
Error: package android.content does not exist import android ...
After installed @capacitor/app getting error: package android.content does not exist import android.content.Intent;
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