Error : flutter doctor –android-licenses

Beranda › Forums › Belajar Flutter Mobile Apps Tingkat Pemula › Error : flutter doctor –android-licenses

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #204166
    budiamanprasetyo
    Participant

      Selamat malam bisa bantu untuk kendala yang saya alami, saat saya menjalankan command:
      – flutter doctor
      – flutter doctor –android-licenses

      $ flutter doctor
      Doctor summary (to see all details, run flutter doctor -v):
      [√] Flutter (Channel stable, 3.10.6, on Microsoft Windows [Version 10.0.22000.2057], locale en-ID)
      [√] Windows Version (Installed version of Windows is version 10 or higher)
      [!] Android toolchain – develop for Android devices (Android SDK version 32.1.0-rc1)
      X Cannot execute C:\Program Files\Java\jdk1.8.0_241\bin\bin\java to determine the version
      [√] Chrome – develop for the web
      [√] Visual Studio – develop for Windows (Visual Studio Community 2022 17.1.0)
      [√] Android Studio (version 2022.3)
      [!] Android Studio
      X android-studio-dir = C:/Program Files/Android/Android Studio
      X Unable to find bundled Java version.
      [√] IntelliJ IDEA Community Edition (version 2020.3)
      [√] VS Code (version 1.75.1)
      [√] Connected device (3 available)
      [√] Network resources

      ! Doctor found issues in 2 categories.

      $ flutter doctor –android-licenses

      ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk1.8.0_241\bin

      Please set the JAVA_HOME variable in your environment to match the
      location of your Java installation.
      Android sdkmanager tool was found, but failed to run (F:\sdk\cmdline-tools\11.0\bin\sdkmanager.bat): “exited code 1”.
      Try re-installing or updating your Android SDK,
      visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions.

      #204212
      Anonymous

        apakah sudah menambahkan kedalam environment windows ?

      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