VIJAY MISHRA
VIJAY MISHRA

Reputation: 1

Build failed after ejecting from expo

FAILURE: Build failed with an exception.

BUILD FAILED in 10s

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

BUILD FAILED in 10s

Upvotes: 0

Views: 1289

Answers (2)

saint
saint

Reputation: 53

Go to android/build.gradle and in repositories add

        maven {
        // expo-camera bundles a custom com.google.android:cameraview
        url "$rootDir/../node_modules/expo-camera/android/maven"
    }

then in terminal cd android and gradlew clean then go back to your project folder and try again npx react-native run-android

Upvotes: 3

Gogul-S
Gogul-S

Reputation: 206

Have you setup all the environment requirements?

If not you need to set up the following before building a standalone app without expo.

React Native environment set up

Follow the steps in above link

Upvotes: 0

Related Questions