technology logo
technology logo

warning: method definition for 'set RegisterPlugins:' not found [-Incomplete-implementation]

share link

by sayem312518 dot icon Updated: Feb 4, 2023

Guide Kit Guide Kit  

warning: method definition for 'set RegisterPlugins:' not found [-Incomplete-implementation]

Hi! I'm having a problem running an app with this plugin installed. I've done everything I found on the internet and nothing works... If I comment await FlutterDownloader.initialize(); I can start the application.

Deployment Information

"/ios/Runner/AppDelegate.swift" file.

I had the same problem.

I solved it by adding the code below.


import UIKit
import Flutter
import flutter_downloader

@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    GeneratedPluginRegistrant.register(with: self)
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)

private func registerPlugins(registry: FlutterPluginRegistry) {
    if (!registry.hasPlugin("FlutterDownloaderPlugin")) {
       FlutterDownloaderPlugin.register(with: registry.registrar(forPlugin: "FlutterDownloaderPlugin"))