sbugert / react-native-admob

A react-native component for Google AdMob banners
BSD 2-Clause "Simplified" License
1.13k stars 532 forks source link

Execution failed for task ':app:processDebugResources'. #548

Open butavpaul opened 3 years ago

butavpaul commented 3 years ago

Hi. When I'm trying to launch the app on my device or to build the apk I get this error. If I remove the package the app it's working. How can I solve this? Thank you!

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

Younanator commented 3 years ago

Getting the same issue

ahmad923245 commented 3 years ago

i m aslo geeting this issue

minhasmaqsood commented 3 years ago

I am also getting this issue

ahmad923245 commented 3 years ago

@butavpaul find any solution?

yunusaslancan commented 3 years ago

@butavpaul find any solution?

ananditasharma2120 commented 3 years ago

Change your gradle version in build.gradle as per the series version you are using.These are the updated versions. 3.3.3 3.4.3 3.5.4 3.6.4 4.0.1

wandersonalwes commented 3 years ago
  1. Open your project's android folder in Android Studio, and wait a moment, a notification will appear in the bottom right corner asking for Gradle to be updated. You must click on update, wait for the update...

  2. After finishing the Gradle update run ./gradlew clean in the android folder.

  3. Open your complete project and run yarn android or npm run android again.

Good luck 🎉

ahmad923245 commented 3 years ago
  1. Open your project's android folder in Android Studio, and wait a moment, a notification will appear in the bottom right corner asking for Gradle to be updated. You must click on update, wait for the update...
  2. After finishing the Gradle update run ./gradlew clean in the android folder.
  3. Open your complete project and run yarn android or npm run android again.

Good luck 🎉

android not open project properly

diegocharles commented 3 years ago
  1. Open your project's android folder in Android Studio, and wait a moment, a notification will appear in the bottom right corner asking for Gradle to be updated. You must click on update, wait for the update...
  2. After finishing the Gradle update run ./gradlew clean in the android folder.
  3. Open your complete project and run yarn android or npm run android again.

Good luck 🎉

@wandersonalwes I don't know you but I own you a coffee haha. Thank you!

fdmxfarhan commented 2 years ago

I owe you a coffee too. thanks!!

CThu01 commented 2 years ago

Please answer for this solution

RuslanAltymyshev commented 2 years ago
  1. Open your project's android folder in Android Studio, and wait a moment, a notification will appear in the bottom right corner asking for Gradle to be updated. You must click on update, wait for the update...
  2. After finishing the Gradle update run ./gradlew clean in the android folder.
  3. Open your complete project and run yarn android or npm run android again.

Good luck 🎉

thank you @wandersonalwes

nisith44 commented 2 years ago

Steps

first try this---> it can be connection err to maven repositary server.. so try again some times..

if not work then

Goto Android studio SDK manager-->SDK tool-->show package details-->select 30.0.0 Goto Android studio SDK manager-->SDK Platforms-->select 32

then try to build --> ionic cordova build android

if key board err came use this command--> ionic cordova plugin rm ionic-plugin-keyboard

if build unsuccess

ionic cordova platform rm android ionic cordova platform add android@9.1.0 ionic cordova build android

mamonaabdullah122 commented 1 year ago

I have this issue help

Configure project :react-native-reanimated AAR for react-native-reanimated has been found /Volumes/Os/FirebaseAuth/node_modules/react-native-reanimated/android/react-native-reanimated-69-jsc.aar

Task :app:processDebugResources FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings 178 actionable tasks: 2 executed, 176 up-to-date

FAILURE: Build failed with an exception.

BUILD FAILED in 7s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

BUILD FAILED in 7s

at makeError (/Volumes/Os/FirebaseAuth/node_modules/execa/index.js:174:9)
at /Volumes/Os/FirebaseAuth/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/Volumes/Os/FirebaseAuth/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
at async Command.handleAction (/Volumes/Os/FirebaseAuth/node_modules/@react-native-community/cli/build/index.js:192:9)

info Run CLI with --verbose flag for more details.

syedrahaman92 commented 5 months ago
  1. Open your project's android folder in Android Studio, and wait a moment, a notification will appear in the bottom right corner asking for Gradle to be updated. You must click on update, wait for the update...
  2. After finishing the Gradle update run ./gradlew clean in the android folder.
  3. Open your complete project and run yarn android or npm run android again.

Good luck 🎉

I tried this but still getting the same error !

Make sure your Internet connection is not restricted. Try using VPN. I hope it helps