Error Pas Run Debug Lib -> main.dart

Beranda › Forums › Belajar Flutter Mobile Apps Tingkat Pemula › Error Pas Run Debug Lib -> main.dart

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #205771
    Fajaruddin
    Participant

      halo coach, mohon bantuannya. ini kenapa jadi error, pas mau running apps pertama kali. code error nya sebagai berikut :

      Launching lib\main.dart on AOSP on IA Emulator in debug mode…

      FAILURE: Build failed with an exception.

      * What went wrong:
      Could not open settings generic class cache for settings file ‘C:\Users\fajar\OneDrive\Desktop\FlutterProject\belajar1\android\settings.gradle’ (C:\Users\fajar\.gradle\caches\6.7\scripts\1fnwrr8g4rohfp291nvlxj5qe).
      > BUG! exception in phase ‘semantic analysis’ in source unit ‘_BuildScript_’ Unsupported class file major version 64
      * 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.
      * Get more help at https://help.gradle.org

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

      #206160
      Anonymous

        ada 3 problem yang biasa terjadi dalam error ini :
        1. belum menambahkan path java dalam envroment
        2. masih menggunakan JDK lama dan tidak sesuai dengan JDK yang dari flutter atau java
        3. gradlew harus dibersihkan terlebih dahulu

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.
      Shopping cart0
      There are no products in the cart!
      Continue shopping