Package doesn't exist error android
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.
It was a flutter error. I reinstalled flutter and it solved the problem.
I have the same issue with flutter 3.3.6
I am also facing same issue with 3.3.0
Same for Flutter 3.0.5. Moreover, the assembly of the application broke even for the code that was correctly assembled earlier. For the same commit in the same environment. On October 25, the application was built, but yesterday it was not, including in the CI / DI environment.
issue should reopen @KevalPrajapati
issue should reopen @KevalPrajapati
Hey I will try building a sample once again with the latest versions. Just to check if it fails for me too.
My solution
-
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>--> -
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'
-
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
-
Change maven { url 'https://maven.google.com' } to google()