Upgrade Skill Di ITBOX Jadi Lebih Hemat
Special Diskon 50%
Sampai 16 November 2026!
Hari
Jam
Menit
Detik
GARUDABOX

maun run tapi error

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #51574
    Gilang Derajat
    Participant

      Launching lib\main.dart on Windows in debug mode…
      lib\main.dart:1
      Exception: Unable to find suitable Visual Studio toolchain. Please run flutter doctor for more details.

      #51577
      Gilang Derajat
      Participant

        tolong dibantu coach kevin ini sy sudah bikin kode tapi emulatornya error seperti ini

        Closure call with mismatched arguments: function ‘_MyAppState._jawaban’
        Receiver: Closure: () => void from Function ‘_jawaban@570325635’:.
        Tried calling: _MyAppState._jawaban(Closure: () => void from Function ‘_jawaban@570325635’:., “pantai”)
        Found: _MyAppState._jawaban() => void

        ini salah dimananya ??

        #51581
        Anonymous

          ini ada kesalahan di code nya, bukan emulatornya ya ka,
          mungkin bisa cek kembali di bagian Function Jawaban

          #103215
          Gilang Derajat
          Participant

            import ‘dart:developer’;

            import ‘package:flutter/material.dart’;

            class jawaban extends StatelessWidget {
            //const jawaban({Key key}) : super(key: key);
            Function handlepilih;
            String jawabanText;
            jawaban(this.handlepilih, this.jawabanText);

            @override
            Widget build(BuildContext context) {
            return Container(
            width: double.infinity,
            child: ElevatedButton(
            onPressed: handlepilih,
            style: ElevatedButton.styleFrom(
            primary: Colors.red,
            ),
            child: Text(jawabanText),

            debug :

            Launching lib\main.dart on Windows in debug mode…
            lib\main.dart:1
            Exception: Unable to find suitable Visual Studio toolchain. Please run flutter doctor for more details.
            Exited (sigterm)

            klu ada seperti ini salah dimananya coach mohon dibantu ?

            #103223
            Gilang Derajat
            Participant

              import ‘dart:developer’;

              import ‘package:flutter/material.dart’;

              class jawaban extends StatelessWidget {
              //const jawaban({Key key}) : super(key: key);
              Function handlepilih;
              String jawabanText;
              jawaban(this.handlepilih, this.jawabanText);

              @override
              Widget build(BuildContext context) {
              return Container(
              width: double.infinity,
              child: ElevatedButton(
              onPressed: handlepilih,
              style: ElevatedButton.styleFrom(
              primary: Colors.red,
              ),
              child: Text(jawabanText),

              debug :

              Launching lib\main.dart on Windows in debug mode…
              lib\main.dart:1
              Exception: Unable to find suitable Visual Studio toolchain. Please run flutter doctor for more details.
              Exited (sigterm)

              klu ada seperti ini salah dimananya coach mohon dibantu ?

              #103247
              Anonymous

                Boleh di run sesuai permintaan, flutter doctor lalu berikan kesini apa isinya

                #103248
                Anonymous

                  Boleh di run sesuai permintaan, flutter doctor lalu berikan kesini apa isinya

                  #103284
                  Gilang Derajat
                  Participant

                    ini udh sy run :

                    Exception: Unable to find suitable Visual Studio toolchain. Please run flutter doctor for more details.
                    Exited (sigterm)

                    #103285
                    Gilang Derajat
                    Participant

                      Doctor summary (to see all details, run flutter doctor -v):
                      [√] Flutter (Channel stable, 3.0.2, on Microsoft Windows [Version 10.0.19043.1826], locale en-US)
                      [√] Android toolchain – develop for Android devices (Android SDK version 33.0.0)
                      [√] Chrome – develop for the web
                      [X] Visual Studio – develop for Windows
                      X Visual Studio not installed; this is necessary for Windows development.
                      Download at https://visualstudio.microsoft.com/downloads/.
                      Please install the “Desktop development with C++” workload, including all of its default components
                      [√] Android Studio (version 2021.2)
                      [√] VS Code (version 1.69.2)
                      [√] Connected device (3 available)
                      [√] HTTP Host Availability

                      ! Doctor found issues in 1 category.

                      #103378
                      Steward Lumowa
                      Participant

                        di install visual studionya dlu mas, soalnya untuk flutter versi terbaru diminta install visual studionya.

                        info : visual studio dsni beda dgn VS code 🙂

                        #104025
                        Anonymous

                          iya betul, itu sesuai dengan permintaan command nya ya, install visual studio dulu
                          Download at https://visualstudio.microsoft.com/downloads/.

                          #104026
                          Anonymous

                            Terima kasih atas bantuan jawabannya @steward

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