Merhaba aranızda daha önce bu hatayı alan var mı ?
Execution failed for task ‘:app:compileDebugKotlin’

HseyinAkkaya
e: /Users/ogulcantosunoglu/MopDev/Github/Flutter/emopas/android/app/src/main/kotlin/com/example/m1backoffice/Application.kt: (13, 51): Unresolved reference: setPluginRegistrant

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:compileDebugKotlin’.

Compilation error. See log for more 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.

BUILD FAILED in 1m
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

    HseyinAkkaya Yalnız bu hatayı uygulamamı chrome da calsıtırdıgımda almıyorum eger emulatorde calıstırmayı denersem boyle bır hata gelıyor

    Flutter
    ✓] Flutter (Channel stable, 2.10.2, on macOS 11.4 20F71 darwin-x64, locale en-TR)
    • Flutter version 2.10.2 at /Users/ogulcantosunoglu/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 097d3313d8 (5 weeks ago), 2022-02-18 19:33:08 -0600
    • Engine revision a83ed0e5e3
    • Dart version 2.16.1
    • DevTools version 2.9.2

    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/ogulcantosunoglu/Library/Android/sdk
    • Platform android-31, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

    [✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.1

    [✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

    [✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
    🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
    🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

    [✓] VS Code (version 1.65.2)
    • VS Code at /Users/ogulcantosunoglu/development/Visual Studio Code.app/Contents
    • Flutter extension version 3.37.20220301

    [✓] Connected device (2 available)
    • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
    • Chrome (web) • chrome • web-javascript • Google Chrome 99.0.4844.83

    [✓] HTTP Host Availability
    • All required HTTP hosts are available

    • No issues found!

    melike-khr Bir problem görünmüyor. Hata çok genel olduğu için bir şey söylemek zor.
    Sıfırdan proje oluşturup çalıştırdığınızda da oluyor mu bu hata ?

    melike-khr Android Studio’da açıp hata mesajını tekrar atar mısınız ?
    Not: Flutter içindeki andorid projesini açacaksınız

    Flutter Launching lib/main.dart on sdk gphone x86 arm in debug mode…
    Running Gradle task ‘assembleDebug’…
    e: /Users/ogulcantosunoglu/MopDev/Github/Flutter/emopas/android/app/src/main/kotlin/com/example/m1backoffice/Application.kt: (13, 51): Unresolved reference: setPluginRegistrant

    FAILURE: Build failed with an exception.

    • What went wrong:
      Execution failed for task ‘:app:compileDebugKotlin’.

    Compilation error. See log for more 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.

    BUILD FAILED in 7m 30s
    Exception: Gradle task assembleDebug failed with exit code 1

      Flutter
      Sorunumun sebebi burası herhalde
      e: /Users/ogulcantosunoglu/MopDev/Github/Flutter/emopas/android/app/src/main/kotlin/com/example/m1backoffice/Application.kt: (13, 51): Unresolved reference: setPluginRegistrant

      dosya ıcerıgı :
      class Application : FlutterApplication(), PluginRegistrantCallback {

      override fun onCreate() {
          super.onCreate()
          FlutterFirebaseMessagingBackgroundService.setPluginRegistrant(this);
          FlutterMain.startInitialization(this)
      }
      
      override fun registerWith(registry: PluginRegistry?) {
      }

      }

      Write a Reply...