Task :app:createReleaseExpoManifest FAILED

I am trying to produce apk in a project I created with create-react-native-app. But an error like xxxx occurs. I would appreciate if anyone with knowledge helps.

Task :app:createReleaseExpoManifest FAILED Error: Failed to connect to the packager server. If you did not start this build by running 'react-native run-android', you can start the packager manually by running 'react-native start' in the project directory. (Error: connect ECONNREFUSED 127.0.0.1:8081)

enter image description here enter image description here

Upvotes: 0

Views: 3499

Answers (1)

brentvatne
brentvatne

Reputation: 8038

See the error message:

Task :app:createReleaseExpoManifest FAILED Error: Failed to connect to the packager server. If you did not start this build by running 'react-native run-android', you can start the packager manually by running 'react-native start' in the project directory. (Error: connect ECONNREFUSED 127.0.0.1:8081)

So, run react-native start and then build your app.

Upvotes: 1

Related Questions