The build failed likely due to AndroidX incompatibilities in a plugin. (audioplayers ??)
See original GitHub issueBug report
Getting a very strange bug, seems unrelated to the project but occurs only when I include this dependency in my pubspec.yaml
google_mobile_ads: ^0.11.0+3
I was originally on flutter’s stable
channel when this occurred. I also tried dev
, beta
, was having issues with a curl: (56) LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
error and also looked like I was getting the same errors, so kinda gave up trying different channels and switched back to stable
(after many failed attempts).
Launching lib/main.dart on AOSP on IA Emulator in debug mode...
lib/main.dart:1
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
/Users/takaomatt/.gradle/caches/transforms-2/files-2.1/64c98a67cb9daf6485fbefd78c4aebac/play-services-ads-lite-19.7.0/AndroidManifest.xml:27:5-43:15: AAPT: error: unexpected element <queries> found in <manifest>.
* 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 40s
The build failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetifier to solve the incompatibility.
Building plugin audioplayers...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'audioplayers'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
* 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 3s
Exception: The plugin audioplayers could not be built due to the issue above.
Exited (sigterm)
Steps to reproduce
Steps to reproduce the behavior:
Simply add google_mobile_ads: ^0.11.0+3
to my dependencies. My other dependencies:
Expected behavior
Non-crashing start of app.
Additional context
Add any other context about the problem here.
Flutter doctor
Run flutter doctor
and paste the output below:
Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.2, on macOS 11.2.3 20D91 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.2)
[✓] VS Code (version 1.54.0)
[✓] Connected device (2 available)
• No issues found!
Flutter dependencies
Run flutter pub deps -- --style=compact
and paste the output below:
Click To Expand
Dart SDK 2.12.1
Flutter SDK 2.0.2
chess_egress 1.0.1+2
dependencies:
- auto_size_text 2.1.0 [flutter]
- cupertino_icons 1.0.0
- flame 0.29.3 [flutter audioplayers ordered_set box2d_flame synchronized convert flare_flutter meta]
- flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine]
- google_mobile_ads 0.11.0+3 [meta flutter]
- material_design_icons_flutter 4.0.5855 [flutter]
- provider 5.0.0 [collection flutter nested]
- shared_preferences 0.5.12+4 [meta flutter shared_preferences_platform_interface shared_preferences_linux shared_preferences_macos shared_preferences_web shared_preferences_windows]
- simple_animations 2.5.1 [flutter supercharged sa_v1_migration pedantic]
- transparent_image 1.0.0
- vibration 1.7.3 [flutter vibration_web]
dev dependencies:
- flutter_launcher_icons 0.8.1 [image args yaml path]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data]
transitive dependencies:
- archive 2.0.13 [crypto args path]
- args 1.6.0
- async 2.5.0 [collection]
- audioplayers 0.17.4 [uuid path_provider flutter flutter_web_plugins]
- boolean_selector 2.1.0 [source_span string_scanner]
- box2d_flame 0.4.6 [vector_math]
- characters 1.1.0
- charcode 1.2.0
- clock 1.1.0
- collection 1.15.0
- convert 2.1.1 [charcode typed_data]
- crypto 2.1.5 [collection convert typed_data]
- fake_async 1.2.0 [clock collection]
- ffi 0.1.3
- file 5.2.1 [intl meta path]
- flare_dart 2.3.4
- flare_flutter 2.0.6 [flutter flare_dart meta]
- flutter_web_plugins 0.0.0 [flutter js characters collection meta typed_data vector_math]
- image 2.1.19 [archive xml meta]
- intl 0.16.1 [path]
- js 0.6.3
- matcher 0.12.10 [stack_trace]
- meta 1.3.0
- nested 1.0.0 [flutter]
- ordered_set 2.0.2
- path 1.8.0
- path_provider 1.6.27 [flutter path_provider_platform_interface path_provider_macos path_provider_linux path_provider_windows]
- path_provider_linux 0.0.1+2 [path xdg_directories path_provider_platform_interface flutter]
- path_provider_macos 0.0.4+8 [flutter]
- path_provider_platform_interface 1.0.4 [flutter meta platform plugin_platform_interface]
- path_provider_windows 0.0.4+3 [path_provider_platform_interface meta path flutter ffi win32]
- pedantic 1.9.2 [meta]
- petitparser 3.1.0 [meta]
- platform 2.2.1
- plugin_platform_interface 1.0.3 [meta]
- process 3.0.13 [file intl meta path platform]
- sa_v1_migration 1.1.2 [flutter]
- shared_preferences_linux 0.0.2+4 [file flutter meta path path_provider_linux shared_preferences_platform_interface]
- shared_preferences_macos 0.0.1+11 [shared_preferences_platform_interface flutter]
- shared_preferences_platform_interface 1.0.4 [meta flutter]
- shared_preferences_web 0.1.2+7 [shared_preferences_platform_interface flutter flutter_web_plugins meta]
- shared_preferences_windows 0.0.2+3 [shared_preferences_platform_interface flutter file meta path path_provider_platform_interface path_provider_windows]
- sky_engine 0.0.99
- source_span 1.8.1 [collection path term_glyph]
- stack_trace 1.10.0 [path]
- stream_channel 2.1.0 [async]
- string_scanner 1.1.0 [charcode source_span]
- supercharged 1.12.0 [supercharged_dart flutter]
- supercharged_dart 1.4.0
- synchronized 2.2.0+2
- term_glyph 1.2.0
- test_api 0.2.19 [async boolean_selector collection meta path source_span stack_trace stream_channel string_scanner term_glyph matcher]
- typed_data 1.3.0 [collection]
- uuid 2.2.2 [crypto convert]
- vector_math 2.1.0
- vibration_web 1.6.2 [flutter flutter_web_plugins]
- win32 1.7.4+1 [ffi]
- xdg_directories 0.1.2 [meta path process]
- xml 4.5.1 [collection convert meta petitparser]
- yaml 2.2.1 [charcode collection string_scanner source_span]
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7
Top GitHub Comments
I had a similar error to this and I fixed it by
you’re a legend. I use VS code so I skipped step 1, but steps 2 and 3 worked for me. i can close the ticket if it’s working for everyone.