question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build fails on `react-native-navigation`

See original GitHub issue

Build/Submit details page URL

https://expo.dev/accounts/projectjoin/projects/projectjoin/builds/b91a2908-eed1-461c-beaa-209834763336

Summary

Build fails on react-native-navigation

[stderr] FAILURE: Build completed with 2 failures.

[stderr] 1: Task failed with an exception.

[stderr] -----------

[stderr] * Where:

[stderr] Build file '/home/expo/workingdir/build/node_modules/react-native-navigation/lib/android/app/build.gradle' line: 5

[stderr] * What went wrong:

[stderr] A problem occurred evaluating project ':react-native-navigation'.

[stderr] > Plugin with id 'kotlin-android' not found.

[stderr] * Try:

[stderr] > Run with --stacktrace option to get the stack trace.

[stderr] > Run with --info or --debug option to get more log output.

[stderr] > Run with --scan to get full insights.

[stderr] ==============================================================================

[stderr] 2: Task failed with an exception.

[stderr] -----------

[stderr] * What went wrong:

[stderr] A problem occurred configuring project ':react-native-navigation'.

[stderr] >

[stderr] compileSdkVersion is not specified. Please add it to build.gradle

[stderr] * Try:

[stderr] > Run with --stacktrace option to get the stack trace.

[stderr] > Run with --info or --debug option to get more log output.

[stderr] > Run with --scan to get full insights.

[stderr] ==============================================================================

[stderr] * Get more help at https://help.gradle.org

[stderr] BUILD FAILED in 2m 10s

Just started with EAS so not sure if this should be reported here or with react-native-navigation

Managed or bare?

Managed

Environment

expo-env-info 1.0.4 environment info: System: OS: Linux 5.18 Arch Linux Shell: 3.4.1 - /bin/fish Binaries: Node: 16.15.1 - /usr/bin/node Yarn: 1.22.19 - /usr/bin/yarn npm: 8.5.5 - /usr/bin/npm npmPackages: @expo/webpack-config: ~0.16.21 => 0.16.25 expo: ^45.0.0 => 45.0.6 react: 17.0.2 => 17.0.2 react-dom: 17.0.2 => 17.0.2 react-native: 0.68.2 => 0.68.2 react-native-web: 0.17.7 => 0.17.7 Expo Workflow: managed

Error output

No response

Reproducible demo or steps to reproduce from a blank project

Not possible ATM, build should give enough information for now. Will see what I can do if required.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
JFranco-Advancedcommented, Oct 14, 2022

Go to package.json and delete react-native-navigation. Thats work for me

1reaction
tamis-laancommented, Jun 29, 2022

https://docs.expo.dev/guides/routing-and-navigation/#alternatives

  • React Native Navigation will not work in Expo managed workflow apps, but if you are using a bare React Native app it may be something you will consider. Similar to createNativeStackNavigator from React Navigation, it uses the platform native APIs.

omfg, react-native-navigation was a lingering package and it confused me with react-navigation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-navigation installing caused build failed - Stack Overflow
After I install react-navigation and other dependencies, it keeps running into this error. I have tried to clean the cache and reinstall ...
Read more >
Troubleshooting | React Navigation
This section attempts to outline issues that users frequently encounter when first getting accustomed to using React Navigation. These issues may or may...
Read more >
Installation | React Native Navigation - Open Source
This is a good moment to build your application in both platforms, validate that everything is working properly and commit your changes. If...
Read more >
React Native Navigation: Tutorial with examples
In this React Native Navigation tutorial, we'll show you some examples of navigation patterns you can implement with React Navigation.
Read more >
Troubleshooting for React Native | Sentry Documentation
Troubleshooting · App Start Numbers Are Too High To Be Accurate · Unhandled Promise Rejections · Source Maps · iOS Build Script Failed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found