flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

AndroidX incompatibilitiese

Open samithe7 opened this issue 5 years ago • 11 comments

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\samiu.gradle\caches\transforms-2\files-2.1\a3b8085db30285646632e9aaa0c95070\play-services-ads-lite-19.6.0\AndroidManifest.xml:27:5-38:15: AAPT: error: unexpected element found in .

samithe7 avatar Jan 14 '21 14:01 samithe7

Try running flutter clean and running the app again

bdlukaa avatar Jan 14 '21 23:01 bdlukaa

without admob plugin app run but after add admob plugin show this massage

samithe7 avatar Jan 14 '21 23:01 samithe7

I had the same issue. I just upgraded the project gradle version to 3.5.4

bdlukaa avatar Jan 15 '21 00:01 bdlukaa

I am experiencing the same issue. Didn't work even after running flutter clean.

firebase_admob version: ^0.11.0+1

The error shown on building:

* 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
     /home/hmogni/.gradle/caches/transforms-2/files-2.1/a3b8085db30285646632e9aaa0c95070/play-services-ads-lite-19.6.0/AndroidManifest.xml:27:5-38:15: AAPT: error: unexpected element <queries> found in <manifest>.

The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.

hamzamogni avatar Jan 15 '21 10:01 hamzamogni

I'm having the same problem. Let me know if anyone knows the solution. 😭 firebase_admob version: ^0.11.0+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
     /home/jay-flow/.gradle/caches/transforms-2/files-2.1/0dc4181583bc0660025808e34a9b6695/play-services-ads-lite-19.6.0/AndroidManifest.xml:27:5-38:15: AAPT: error: unexpected element <queries> found in <manifest>.

iCodePoet avatar Jan 17 '21 10:01 iCodePoet

I had the same issue. I just upgraded the project gradle version to 3.5.4

Thank you. It is work for me :)

iCodePoet avatar Jan 17 '21 11:01 iCodePoet

I had the same issue. I just upgraded the project gradle version to 3.5.4

Yes I did the same.

2shrestha22 avatar Jan 21 '21 16:01 2shrestha22

Update classpath 'com.android.tools.build:gradle:3.5.0' to classpath 'com.android.tools.build:gradle:3.5.4' in build.gradle

lalitjarwal avatar Jan 24 '21 15:01 lalitjarwal

I am using classpath 'com.android.tools.build:gradle:4.1.2' and not solved my problem

abdullah4one avatar Feb 17 '21 04:02 abdullah4one

I am using classpath 'com.android.tools.build:gradle:4.1.2' and not solved my problem

Use 3.5.4 or 4.0.1

2shrestha22 avatar Feb 17 '21 05:02 2shrestha22

The firebase_admob plugin will be deprecated in April 2021 in favor of Google Mobile Ads SDK for Flutter. Google Mobile Ads SDK for Flutter is a new Flutter plugin that supports more Ads formats than firebase_admob does. Google Mobile Ads SDK for Flutter currently supports loading and displaying banner, interstitial (full-screen), native ads, and rewarded video ads across AdMob and AdManager. It also supports displaying banner and native ads as Widgets as opposed to being overlayed over all app content. We're now recommending projects currently using firebase_admob migrate to Google Mobile Ads SDK for Flutter following the instructions outlined here. Issues with migrating or with using the new package should now be raised over on the Google Mobile Ads SDK for Flutter repository.

russellwheatley avatar Mar 19 '21 12:03 russellwheatley