expo / expo/examples

with-router-menus example does not build for Android

Open
#536 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When I try to run the with-router-menus example project, I get a build error.

```
> Task :app:processDebugResources FAILED

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.res.LinkApplicationAndroidResourcesTask$TaskAction
> Android resource linking failed
com.rboarman.routermenusapp-mergeDebugResources-43:/values/values.xml:5689: error: resource drawable/splashscreen_logo (aka com.rboarman.routermenusapp:drawable/splashscreen_logo) not found.
com.rboarman.routermenusapp-mergeDebugResources-43:/values/values.xml:5689: error: resource drawable/splashscreen_logo (aka com.rboarman.routermenusapp:drawable/splashscreen_logo) not found.
error: failed linking references.
```

**To Reproduce**
Steps to reproduce the behavior:
1. Create the example project:

`npx create-expo ./router-menus-app --example with-router-menus`

3. Run the project:

`npm run android`

The error occurs during the app:processDebugResources task.

**Expected behavior**
A clear and concise description of what you expected to happen.

OS: Windows11
Expo version: 52.0.23
React-native version: 0.76.5
Expo modules:
- expo-asset (11.0.1)
- expo-constants (17.0.3)
- expo-file-system (18.0.6)
- expo-font (13.0.2)
- expo-keep-awake (14.0.1)
- expo-linking (7.0.3)
- expo-modules-core (2.1.2)
- expo-splash-screen (0.29.18)

Full output:

```
$ npm run android

> router-menus-app@1.0.0 android
> expo run:android

› Android package name: com.rboarman.routermenusapp
- Creating native directory (./android)
√ Created native directory
- Updating package.json
› Using current versions instead of recommended react-native@0.76.5.
- Updating package.json
√ Updated package.json | no changes
- Running prebuild
» android: userInterfaceStyle: Install expo-system-ui in your project to enable this feature.
- Running prebuild
√ Finished prebuild
› Opening emulator Medium_Phone_API_35
› Building app...
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
Configuration on demand is an incubating feature.

> Configure project :expo

Using expo modules
- expo-asset (11.0.1)
- expo-constants (17.0.3)
- expo-file-system (18.0.6)
- expo-font (13.0.2)
- expo-keep-awake (14.0.1)
- expo-linking (7.0.3)
- expo-modules-core (2.1.2)
- expo-splash-screen (0.29.18)

> Configure project :react-native-reanimated
Android gradle plugin: 8.6.0
Gradle: 8.10.2

> Task :app:processDebugResources FAILED

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.res.LinkApplicationAndroidResourcesTask$TaskAction
> Android resource linking failed
com.rboarman.routermenusapp-mergeDebugResources-43:/values/values.xml:5689: error: resource drawable/splashscreen_logo (aka com.rboarman.routermenusapp:drawable/splashscreen_logo) not found.
com.rboarman.routermenusapp-mergeDebugResources-43:/values/values.xml:5689: error: resource drawable/splashscreen_logo (aka com.rboarman.routermenusapp:drawable/splashscreen_logo) not found.
error: failed linking references.

* 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.

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

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

For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 29s
166 actionable tasks: 37 executed, 129 from cache
Error: C:\Users\rrb\Documents\projects\crypto\router-menus-app\android\gradlew.bat app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=x86_64,arm64-v8a exited with non-zero code: 1
Error: C:\Users\rrb\Documents\projects\crypto\router-menus-app\android\gradlew.bat app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=x86_64,arm64-v8a exited with non-zero code: 1
at ChildProcess.completionListener (C:\Users\rrb\Documents\projects\crypto\router-menus-app\node_modules\@expo\spawn-async\src\spawnAsync.ts:67:13)
at Object.onceWrapper (node:events:639:26)
at ChildProcess.emit (node:events:524:28)
at ChildProcess.cp.emit (C:\Users\rrb\Documents\projects\crypto\router-menus-app\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1101:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
...
at spawnAsync (C:\Users\rrb\Documents\projects\crypto\router-menus-app\node_modules\@expo\spawn-async\src\spawnAsync.ts:28:21)
at spawnGradleAsync (C:\Users\rrb\Documents\projects\crypto\router-menus-app\node_modules\@expo\cli\src\start\platforms\android\gradle.ts:134:28)
at assembleAsync (C:\Users\rrb\Documents\projects\crypto\router-menus-app\node_modules\@expo\cli\src\start\platforms\android\gradle.ts:83:16)
at runAndroidAsync (C:\Users\rrb\Documents\projects\crypto\router-menus-app\node_modules\@expo\cli\src\run\android\runAndroidAsync.ts:48:24)

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.