Android studioda açıkken böyle hata verdi

    SerkanKul Bunun kodlarla ilgisi olduğunu sanmıyorum.
    Androdi jdk ile iligili sorun var galiba

      evet suan kodlarla ilgili değil gradle ilgili sorunlar var

        firebase işlemleri varmı projede ?

        Studio ile sadece /android/ klasörünü tek aç synchronize edecektir studio.

          tamamen gradle sorunu bu ama aşamıyorum

          Sending crash report to Google.

          Crash report sent (report ID: fa51a7f47ff5dbff)
          Oops; flutter has exited unexpectedly.
          Crash report written to C:\Nexthour Mobile App Flutter Files\flutter_05.log;
          please let us know at https://github.com/flutter/flutter/issues.

          C:\Nexthour Mobile App Flutter Files>flutter –no-color build apk
          You are building a fat APK that includes binaries for android-arm, android-arm64.
          If you are deploying the app to the Play Store, it’s recommended to use app bundles or split the APK to reduce the APK size.
          To generate an app bundle, run:
          flutter build appbundle –target-platform android-arm,android-arm64
          Learn more on: https://developer.android.com/guide/app-bundle
          To split the APKs per ABI, run:
          flutter build apk –target-platform android-arm,android-arm64 –split-per-abi
          Learn more on: https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split
          Initializing gradle… 10,8s
          Resolving dependencies…

          • Error running Gradle:
            ProcessException: Process “C:\Nexthour Mobile App Flutter Files\android\gradlew.bat” exited abnormally:
            Starting a Gradle Daemon (subsequent builds will be faster)

          FAILURE: Build failed with an exception.

          • What went wrong:
            A problem occurred configuring root project ‘android’.
          • 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

          BUİLD FAILED in 26s
          Command: C:\Nexthour Mobile App Flutter Files\android\gradlew.bat app:properties

          Please review your Gradle project setup in the android/ folder.

          C:\Nexthour Mobile App Flutter Files>flutter build appbundle –target-platform android-arm,android-arm64
          Initializing gradle… 0,6s
          Resolving dependencies…

          • Error running Gradle:
            ProcessException: Process “C:\Nexthour Mobile App Flutter Files\android\gradlew.bat” exited abnormally:

          FAILURE: Build failed with an exception.

          • What went wrong:
            A problem occurred configuring root project ‘android’.
          • 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

          BUİLD FAILED in 2s
          Command: C:\Nexthour Mobile App Flutter Files\android\gradlew.bat app:properties

          Please review your Gradle project setup in the android/ folder.

          C:\Nexthour Mobile App Flutter Files>

          SerkanKul
          Projenizi çalıştıramamıştım. Bende gradle sorunu almıştım.
          IOS içinde aynı şeyi yaşadım ya
          Projede kullanılan bir pakete ya güncelleme gelmiş ya da kullanmka için native kod yazmak gerekiyor sanırsam.

            o bölümü geçtik seekbar.dart eklendi ama şu gradle yi geçemiyorum

            FAILURE: Build failed with an exception.

            • What went wrong:
              A problem occurred configuring root project ‘android’.
            • Try:
              Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output. Run with –scan

            hatalar çoğaldı

            Resolving dependencies…

            FAILURE: Build failed with an exception.

            • Where:
              Build file ‘C:\Nexthour Mobile App Flutter Files\android\build.gradle’ line: 14

            • What went wrong:
              A problem occurred evaluating root project ‘android’.

            Could not get unknown property ‘pl’ for repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.

            • 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

            BUİLD FAILED in 1m 6s
            Command: C:\Nexthour Mobile App Flutter Files\android\gradlew.bat app:properties

            Please review your Gradle project setup in the android/ folder.
            Process finished with exit code 1

              Android studio yu baştan kaldırıp kurucam gradle sorunu yaşıyor

              SerkanKul .bazı arkadaşlar bu sorunu dediğin gibi çözmüştü
              Formda var bakabilirsin.
              Bazısı da bilgisayar dilimni ingilizce yaparak çözmüştü

                • Error running Gradle:
                  ProcessException: Process “C:\Nexthour Mobile App Flutter Files\android\gradlew.bat” exited abnormally:

                BUİLD FAILED

                Total time: 0.835 secs

                FAILURE: Build failed with an exception.

                • Where:
                  Build file ‘C:\Nexthour Mobile App Flutter Files\android\build.gradle’ line: 3

                • What went wrong:
                  A problem occurred evaluating root project ‘android’.

                Could not find method google() for arguments [] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.

                • Try:
                  Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.
                  Command: C:\Nexthour Mobile App Flutter Files\android\gradlew.bat app:properties

                Please review your Gradle project setup in the android/ folder.
                Process finished with exit code 1

                  aşağıda iki hata var.

                    Error running Gradle:
                      ProcessException: Process “C:\Nexthour Mobile App Flutter Files\android\gradlew.bat” exited abnormally:
                      Starting a Gradle Daemon (subsequent builds will be faster)
                  
                  FAILURE: Build failed with an exception.
                  
                      What went wrong:
                      A problem occurred configuring root project ‘android’.

                  ilki için flutter run kullanılması gerektiğini döylüyor . ama vscode terminalinde değil ..
                  https://stackoverflow.com/a/53476005/11621600
                  ikinci için böyle bir şey mevcut .
                  https://github.com/flutter/flutter/issues/23777#issuecomment-435678545

                  ================================================

                  ================================================

                  ================================================

                  bunlar dışında firebase ile işlem yaptığımda benzer sorunlar ile karşılaşmıştım
                  şunları izleyebilirsiniz.
                  android/gradle.properties dosyasına aşağıdakileri ekle;

                  android.useAndroidX=true
                  android.enableJetifier=true

                  ardından android/gradle/wrapper/gradle-wrapper.properties dosyasında surumu güncelle
                  distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip

                  devamında android/build.gradle gradle builde versionunu 3.5.1 yap

                  classpath 'com.android.tools.build:gradle:3.5.1'

                  sonrasında android/app/build.gradle dosyasında defaultConfig kısmında multiDexEnabled eklemen gerek.

                  multiDexEnabled true

                  sorun çözülmesi lazım…
                  eğer hata verirse Android Studio ile uygulamanın sadece androis dosyasını aç . Studio onu sycronised edecektir..

                    16 days later

                    Çok teşekkür ederim sorun eksik flutter dosyaları imiş paket düzeltildi…

                    Write a Reply...