I am building a React-Native mobile app through AppCenter and the Android version is failing in one of the last build steps:
> Task :app:processReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> Android resource linking failed
/Users/runner/runners/2.166.3/work/1/s/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:14: AAPT: error: resource mipmap/ic_launcher (aka org.***.mobile:mipmap/ic_launcher) not found.
/Users/runner/runners/2.166.3/work/1/s/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:14: AAPT: error: resource string/app_name (aka org.***.mobile:string/app_name) not found.
/Users/runner/runners/2.166.3/work/1/s/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:14: AAPT: error: resource mipmap/ic_launcher_round (aka org.***.mobile:mipmap/ic_launcher_round) not found.
/Users/runner/runners/2.166.3/work/1/s/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:14: AAPT: error: resource style/AppTheme (aka org.***.mobile:style/AppTheme) not found.
/Users/runner/runners/2.166.3/work/1/s/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:22: AAPT: error: resource string/app_name (aka org.***.mobile:string/app_name) not found.
error: failed processing manifest.
It is almost like it cannot find the files found in the Android res directory such as strings.xml
Am I missing some setting in the app/build.gradle file that is causing the build process to fail in this fashion?
Check your android manifest file, there I think you have deleted the mipmap icon, check if all ic_launcher, apptheme all are their in res folder.
Related
I'm currently upgrading cordova (and its platforms) in an existing project.
After upgrading from cordova-android from 9.x to 11.x I get some build errors:
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\OBurger\.gradle\caches\transforms-3\5c55b34766402f38a5e46b43ac71f280\transformed\jetified-core-splashscreen-1.0.0\res\values-v31\values-v31.xml:3:5-9:13: AAPT: error: style attribute 'android:attr/windowSplashScreenAnimatedIcon' not found.
C:\Users\OBurger\.gradle\caches\transforms-3\5c55b34766402f38a5e46b43ac71f280\transformed\jetified-core-splashscreen-1.0.0\res\values-v31\values-v31.xml:3:5-9:13: AAPT: error: style attribute 'android:attr/windowSplashScreenBackground' not found.
C:\Users\OBurger\.gradle\caches\transforms-3\5c55b34766402f38a5e46b43ac71f280\transformed\jetified-core-splashscreen-1.0.0\res\values-v31\values-v31.xml:3:5-9:13: AAPT: error: style attribute 'android:attr/windowSplashScreenAnimationDuration' not found.
C:\Users\OBurger\.gradle\caches\transforms-3\5c55b34766402f38a5e46b43ac71f280\transformed\jetified-core-splashscreen-1.0.0\res\values-v31\values-v31.xml:10:5-14:13: AAPT: error: style attribute 'android:attr/windowSplashScreenIconBackgroundColor' not found.
C:\Users\OBurger\.gradle\caches\transforms-3\4e55571a2aca20a3df79838283759989\transformed\core-1.7.0\res\values\values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.
I already followed the steps for the cordova-android upgrade described here: https://ionic.zendesk.com/hc/en-us/articles/7891143965975-Migrating-to-Cordova-Android-11
I also added a dependency for "androidx.core:core-splashscreen:1.0.0" in build.gradle
I need help with a project I am working on, the thing is everything was working fine a few days back, but then I had to travel now when I try to run the command react-native run-android I received the following error
* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
C:\Users\sarat\.gradle\caches\transforms-2\files-2.1\b5c19e49f776b182a5792cfc47bb4d7e\core-1.7.0\res\values\values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.
AAPT: error: resource android:attr/lStar not found.
I suggest you to check your drawable folders by theme.
When I run expo run:android my app crashed with the error:
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
/Users/joel/Developer/dnp/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:7014: AAPT: error: duplicate value for resource 'attr/show_buffering' with config ''.
/Users/joel/Developer/dnp/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:7014: AAPT: error: resource previously defined here.
/Users/joel/Developer/dnp/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml: AAPT: error: file failed to compile.
The iOS build works (expo run:ios).
I have tried to change minSdkVersion in my build.gradle and i've changed similar values in that file to try and fix it, with no success.
I am running:
react-native#0.64.3
expo#44.0.6
I'm getting the following error while building my app using react-native run-android:
Task :app:processDebugResources FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings
195 actionable tasks: 2 executed, 193 up-to-date
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/prikshetsharma/.gradle/caches/transforms-2/files-2.1/863e0c3c6716935cd3657ad638fd992d/material-1.1.0/res/values/values.xml:528:5-593:11: AAPT: error: style attribute 'android:attr/contextPopupMenuStyle' not found.
/Users/prikshetsharma/.gradle/caches/transforms-2/files-2.1/863e0c3c6716935cd3657ad638fd992d/material-1.1.0/res/values/values.xml:642:5-699:11: AAPT: error: style attribute 'android:attr/contextPopupMenuStyle' not found.
/Users/prikshetsharma/.gradle/caches/transforms-2/files-2.1/863e0c3c6716935cd3657ad638fd992d/material-1.1.0/res/values/values.xml:748:5-812:11: AAPT: error: style attribute 'android:attr/contextPopupMenuStyle' not found.
/Users/prikshetsharma/.gradle/caches/transforms-2/files-2.1/863e0c3c6716935cd3657ad638fd992d/material-1.1.0/res/values/values.xml:909:5-966:11: AAPT: error: style attribute 'android:attr/contextPopupMenuStyle' not found.
/Users/prikshetsharma/.gradle/caches/transforms-2/files-2.1/863e0c3c6716935cd3657ad638fd992d/material-1.1.0/res/values/values.xml:1023:5-1034:11: AAPT: error: style attribute 'android:attr/dialogCornerRadius' not found.
/Users/prikshetsharma/.gradle/caches/transforms-2/files-2.1/1cb9b9ea592aa2ea85233be252327dcf/appcompat-1.1.0/res/values-v26/values-v26.xml:5:5-8:13: AAPT: error: resource android:attr/colorError not found.
/Users/prikshetsharma/.gradle/caches/transforms-2/files-2.1/1cb9b9ea592aa2ea85233be252327dcf/appcompat-1.1.0/res/values-v26/values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.
/Users/prikshetsharma/.gradle/caches/transforms-2/files-2.1/1cb9b9ea592aa2ea85233be252327dcf/appcompat-1.1.0/res/values-v26/values-v26.xml:13:5-16:13: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
/Users/prikshetsharma/.gradle/caches/transforms-2/files-2.1/1cb9b9ea592aa2ea85233be252327dcf/appcompat-1.1.0/res/values-v28/values-v28.xml:5:5-8:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
/Users/prikshetsharma/.gradle/caches/transforms-2/files-2.1/1cb9b9ea592aa2ea85233be252327dcf/appcompat-1.1.0/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
/Users/prikshetsharma/.gradle/caches/transforms-2/files-2.1/1cb9b9ea592aa2ea85233be252327dcf/appcompat-1.1.0/res/values-v23/values-v23.xml:38:5-41:13: AAPT: error: style attribute 'android:attr/hyphenationFrequency' not found.
/Users/prikshetsharma/.gradle/caches/transforms-2/files-2.1/1cb9b9ea592aa2ea85233be252327dcf/appcompat-1.1.0/res/values-v23/values-v23.xml:38:5-41:13: AAPT: error: style attribute 'android:attr/breakStrategy' not found.
/Users/prikshetsharma/.gradle/caches/transforms-2/files-2.1/1cb9b9ea592aa2ea85233be252327dcf/appcompat-1.1.0/res/values-v23/values-v23.xml:45:5-48:13: AAPT: error: style attribute 'android:attr/hyphenationFrequency' not found.
/Users/prikshetsharma/.gradle/caches/transforms-2/files-2.1/1cb9b9ea592aa2ea85233be252327dcf/appcompat-1.1.0/res/values-v23/values-v23.xml:45:5-48:13: AAPT: error: style attribute 'android:attr/breakStrategy' not found.
/Users/prikshetsharma/.gradle/caches/transforms-2/files-2.1/7ce8a2eb9e81825ec9bcc373c597a746/cardview-1.0.0/res/values-v23/values-v23.xml:3:5-5:13: AAPT: error: resource android:attr/colorBackgroundFloating not found.
/Users/prikshetsharma/.gradle/caches/transforms-2/files-2.1/863e0c3c6716935cd3657ad638fd992d/material-1.1.0/res/values/values.xml:1709:5-1716:11: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
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 5s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
How to fix this error?
It turns out that I had to bump my compileSdkVersion in a module (LVL licensing). Very annoying since the error was manifesting under a completely different module.
My react native project won't build I get the error below.
I have recently changed the package name of my app, it runs fine using react-native run-android. However when I build my apk using ./gradlew assembleRelease. I get the error. Any ideas?
What went wrong:
Execution failed for task ':react-native-youtube:verifyReleaseResources'.
1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values-v26\values-v26.xml:7: error: resource android:attr/colorError not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values-v26\values-v26.xml:11: error: resource android:attr/colorError not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values-v26\values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2711: error: resource android:attr/fontStyle not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2712: error: resource android:attr/font not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2713: error: resource android:attr/fontWeight not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2714: error: resource android:attr/fontVariationSettings not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2715: error: resource android:attr/ttcIndex not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2796: error: resource android:attr/startX not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2799: error: resource android:attr/startY not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2802: error: resource android:attr/endX not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2805: error: resource android:attr/endY not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2813: error: resource android:attr/offset not found.
error: failed linking references.