expo-cli icon indicating copy to clipboard operation
expo-cli copied to clipboard

expo start --android throwing Couldn't start project on Android: Error running adb: unable to get local issuer certificate

Open Deepangose opened this issue 4 years ago • 11 comments

Summary

I have installed expo-cli and created a new react native project using it. Also I've installed android studio in my local and my virtual device is ready and ran it.

When i was run project using command: expo start --android its throwing below error: Couldn't start project on Android: Error running adb: unable to get local issuer certificate

Could you please me on this to find a fix

Uploading image.png…

Environment

Node: 14.x.x Python: 2.7.15 Java details: java version "17.0.1" 2021-10-19 LTS Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39) Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)

expo: ~43.0.2 react-native: 0.64.3

Please specify your device/emulator/simulator platform, model and version

Andriod studio: 3.1.25

Error output

No response

Reproducible demo or steps to reproduce from a blank project

  1. Create a react native project using expo-init cmd.
  2. Install a andriod studio version 3.1.25
  3. Create a virtual device & run it
  4. Start the app using expo start --andriod. it will throw " unable to get local issuer certificate" error

Deepangose avatar Dec 06 '21 12:12 Deepangose

I have a similar issue.

NPM: 8.1.4 ADB: 31.0.3-7562133 Python: 3.10.0 Expo: 4.13.0 React-Native: 2.0.1

from a terminal: npm start a #to start android then

Logs for your project will appear below. Press Ctrl+C to exit. › Opening on Android... › Opening exp://x.x.x.x:NnNn on Pixel_2_API_30 Couldn't start project on Android: Error running adb: unable to get local issuer certificate › Press ? │ show all commands

whittenjaw85 avatar Dec 09 '21 15:12 whittenjaw85

Have you find any solution to fix it?

Deepangose avatar Dec 10 '21 10:12 Deepangose

I tried alot but nothing helped me

Deepangose avatar Dec 10 '21 10:12 Deepangose

I am working behind a corporate proxy. Are you doing the same?

I have tried pointing my npm config set cafile to the pem chain in npnjs.com, but nothing came of it.

whittenjaw85 avatar Dec 10 '21 13:12 whittenjaw85

Yeah I'm working behind corporate proxy.

Deepangose avatar Dec 13 '21 06:12 Deepangose

Solution: Install expo go apk manually in emulator.

Install it from playstore and get the backup of .apk file. Then follow below steps https://stackoverflow.com/questions/17167636/how-to-install-an-apk-on-the-emulator-in-android-studio

Deepangose avatar Dec 15 '21 11:12 Deepangose

This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed.

github-actions[bot] avatar Apr 12 '22 17:04 github-actions[bot]

Having the same issue, any solution?

julian-castorena-eb avatar Apr 16 '22 18:04 julian-castorena-eb

This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed.

github-actions[bot] avatar Jul 15 '22 19:07 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.

github-actions[bot] avatar Jul 22 '22 19:07 github-actions[bot]

I'm facing this issue. Kindly help.

priyank-R avatar Dec 29 '22 07:12 priyank-R