0
I’m on a project that uses firebase and google ads. When I add the google ads dependency on pubspec.yaml I get the following error while compiling:
Launching lib main.Dart on LM X525 in debug mode... Running Gradle task 'assembleDebug'...
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 C: Users m_tvi.Gradle caches Transforms-2 files-2.1 f157eca32c48d863876f0b062be920d6 play-services-ads-lite-20.1.0 Androidmanifest.xml:27:5-43:15: AAPT: error: Unexpected element found in .
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 34s 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 cloud_firestore... Running Gradle task 'assembleAarRelease'... Exception: The plugin cloud_firestore could not be built due to the Issue above.
If I remove the dependency the error goes away.
I am using the following versions of the dependencies:
*cloud_firestore: 2.2.1
image_picker: 0.8.0+1
google_sign_in: 5.0.4
firebase_storage: 8.1.1
firebase_auth: 1.3.0
google_mobile_ads: 0.13.0
flutter_local_notifications: 5.0.0+1
flutter_launcher_icons: 0.7.0
shared_preferences: any*