Please someone should help me with solution i have try to resolve this for days now

540 views
Skip to first unread message

Emmanuel Agu Iroegbulam

unread,
Apr 16, 2019, 11:04:34 AM4/16/19
to flutt...@googlegroups.com
Please someone should help me with solution i have try to resolve this for days now,
below is the output from the Android Studio console:
Thanks

-- Launching lib\main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
  Output:  C:\Users\User\Downloads\Compressed\imonitor\android\app\src\main\res\drawable\launch_background.xml:9: error: resource drawable/bud1.png (aka com.bariansystem.imonitor:drawable/bud1.png) not found.
  error: failed linking file resources.

  Command: C:\Users\User\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\f5c5bd79d1883675b3ebc9d00240137e\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
          E:\sdk\platforms\android-28\android.jar\
          --manifest\
          C:\Users\User\Downloads\Compressed\imonitor\build\app\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
          -o\
          C:\Users\User\Downloads\Compressed\imonitor\build\app\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
          -R\
          @C:\Users\User\Downloads\Compressed\imonitor\build\app\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
          --auto-add-overlay\
          --java\
          C:\Users\User\Downloads\Compressed\imonitor\build\app\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
          --custom-package\
          com.bariansystem.imonitor\
          -0\
          apk\
          --output-text-symbols\
          C:\Users\User\Downloads\Compressed\imonitor\build\app\intermediates\symbols\debug\R.txt\
          --no-version-vectors
  Daemon:  AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
  Output:  C:\Users\User\Downloads\Compressed\imonitor\android\app\src\main\res\drawable\launch_background.xml:9: AAPT: error: resource drawable/bud1.png (aka com.bariansystem.imonitor:drawable/bud1.png) not found.

  error: failed linking file resources.
  Command: C:\Users\User\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\f5c5bd79d1883675b3ebc9d00240137e\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
          E:\sdk\platforms\android-28\android.jar\
          --manifest\
          C:\Users\User\Downloads\Compressed\imonitor\build\app\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
          -o\
          C:\Users\User\Downloads\Compressed\imonitor\build\app\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
          -R\
          @C:\Users\User\Downloads\Compressed\imonitor\build\app\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
          --auto-add-overlay\
          --java\
          C:\Users\User\Downloads\Compressed\imonitor\build\app\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
          --custom-package\
          com.bariansystem.imonitor\
          -0\
          apk\
          --output-text-symbols\
          C:\Users\User\Downloads\Compressed\imonitor\build\app\intermediates\symbols\debug\R.txt\
          --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 23s
*******************************************************************************************
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.
*******************************************************************************************
Finished with error: Gradle task assembleDebug failed with exit code 1


Hugo van Galen

unread,
Apr 17, 2019, 2:40:36 AM4/17/19
to Emmanuel Agu Iroegbulam, Flutter Dev
It helps to post everything you have tried to resolve this, otherwise you will receive suggestions that you already tried.

The error says "launch_background.xml" is referencing an image "bug1.png" that it cannot find. 

You did check that the file actually exists?



--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages