Projeyi debug edince hata veriyor. Build işlemi tamamlanmıyor. Hatayı pc ye format attıktan sonra almaya başladım. Eski projelerim sorunsuz açılıyor . Yeni projelerde sorun çıkıyor.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
  Output:  error: failed to open APK: Invalid file.

  Command: C:\Users\user\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\ed5d63241c32b03b627a8ec4203b323c\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
          C:\Users\user\AppData\Local\Android\sdk\platforms\android-28\android.jar\
          --manifest\
          E:\Flutter_emreal\kkl\build\app\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
          -o\
          E:\Flutter_emreal\kkl\build\app\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
          -R\
          @E:\Flutter_emreal\kkl\build\app\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
          --auto-add-overlay\
          --java\
          E:\Flutter_emreal\kkl\build\app\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
          --custom-package\
          com.example.kkl\
          -0\
          apk\
          --no-version-vectors
  Daemon:  AAPT2 aapt2-3.2.1-4818971-windows Daemon #0

* 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 13s
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
*******************************************************************************************
Gradle task assembleDebug failed with exit code 1
  • path ile ilgili bir sorun değil. Bütün configurationlari yaptım. Sorun build işleminin tamamlanması ile ilgili . sonuç olarak ilk postta ki hatayı veriyordu.
    Android ile ilgili Bütün bileşenleri kaldırıp yeniden yükledim. Sorun çözüldü.

Flutter doctor -v yazıp çıktıyı atar mısınız

    Muhtemelen yeni dosyalarınızı kurduktan sonra PATH hatası alıyorsunuz, hangi işletim sistemi kullanıyorsunuz?

      path ile ilgili bir sorun değil. Bütün configurationlari yaptım. Sorun build işleminin tamamlanması ile ilgili . sonuç olarak ilk postta ki hatayı veriyordu.
      Android ile ilgili Bütün bileşenleri kaldırıp yeniden yükledim. Sorun çözüldü.

      Write a Reply...