Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running adb: Error running app. Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=exp://192.168.0.100:19000 flg=0x10000000 } #398

Closed
a-eid opened this issue Sep 8, 2017 · 20 comments

Comments

@a-eid
Copy link

a-eid commented Sep 8, 2017

Description

trying to run genymotion simulator ..

followed the instructions but getting the following error

Error running adb: Error running app. Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=exp://192.168.0.100:19000 flg=0x10000000 }

Expected Behavior

for the simulator to run

Observed Behavior

Error running adb: Error running app. Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=exp://192.168.0.100:19000 flg=0x10000000 }

Environment

  • npm ls react-native-scripts:
  • npm ls react-native:
  • npm ls expo:
  • node -v:
    8.4.0

  • npm -v:
    5.3.0

  • yarn --version:
    1.0.1

  • watchman version:
    `4.9.0.

Also specify:

  1. Operating system: macos sierra
  2. Phone/emulator/simulator & version: genymotion
@WilliamAnputra
Copy link

+1

@djaffarmr
Copy link

make sure you are using minimal API 19 on your emulator, its work on me somehow.

@anp
Copy link
Contributor

anp commented Oct 17, 2017

Can you try some of the steps that the Expo docs recommend at https://docs.expo.io/versions/latest/guides/genymotion.html ?

@this-miguel
Copy link

I'm having the same issue, do you have any pointers?
screenshot from 2017-10-24 19-10-48
Just yesterday the emulator was running fine :/

@this-miguel
Copy link

this-miguel commented Oct 24, 2017

this worked for me
screenshot from 2017-10-24 19-37-47
source: https://www.bountysource.com/issues/43329081-error-staring-android-emulator
source in github: #112

@brentvatne
Copy link
Member

@this-miguel's solution should work!

@AndrewLosikhin
Copy link

@rednull solution helped. Don't toss that out.

@pinchez254
Copy link

I went over to play store in the emulator and viewed expo to see whether i could update it, and I found a message that this version us not supported in your device. Try different emulators..for me i used android 7 emulator instead and That worked for me!

@parappathekappa
Copy link

@this-miguel solution fixed one problem, but then I kept getting 'Couldn't adb reverse' error messages and 'Couldn't start project on Android...'. @rednull solution was the only one that actually fixed it. I just wish Genymotion had a wider range of tablets with API 19.

@lualparedes
Copy link

My two cents for people that want to understand what's going on:

When you run npm run android, Expo gets installed on the emulator automatically, and since Expo requires Android 4.4+ (API 19), @rednull solution may do the trick (my case 🙌).

On the other hand, if you're using Genymotion and it throws this error when you try to use an emulator that has Android 4.4+:

genymotion_error

you may still be able to use it by reducing the number of cores in the device settings.

@Aziel1234
Copy link

O meu erro é recente tem como me ajudar??

Couldn't start project on Android: Error running adb: Error running app. Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=exp://192.168.44.236:19000 flg=0x10000000 }

@douglasffilho
Copy link

douglasffilho commented Sep 14, 2021

O meu erro é recente tem como me ajudar??

Couldn't start project on Android: Error running adb: Error running app. Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=exp://192.168.44.236:19000 flg=0x10000000 }

Conseguiu resolver? estou com o mesmo erro tentando rodar no emulador sem Google Play (API 22 - Lollipop 5.1)

@PiotrSzlagura
Copy link

I bumped into this exact issue when trying to run my Expo (42) app on android emulator (I was trying to use API 31 at first). Clearing ~/.expo/android-apk-cache did not work.

My issue was resolved when I decided to switch to an emulator with API 30.

@douglasffilho
Copy link

I bumped into this exact issue when trying to run my Expo (42) app on android emulator (I was trying to use API 31 at first). Clearing ~/.expo/android-apk-cache did not work.

My issue was resolved when I decided to switch to an emulator with API 30.

Too bad, I tryed other API versions and got success, but not to API 22. Thanks by answering @PiotrSzlagura

@seb-glanum
Copy link

I bumped into this exact issue when trying to run my Expo (42) app on android emulator (I was trying to use API 31 at first). Clearing ~/.expo/android-apk-cache did not work.

My issue was resolved when I decided to switch to an emulator with API 30.

Same issue but I had my emulator already with API 30, so I've just created a new emulator and it's working now !

@learnersaurabh
Copy link

Can you try some of the steps that the Expo docs recommend at https://docs.expo.io/versions/latest/guides/genymotion.html ?

Thanks @anp , it worked for me

@owivans
Copy link

owivans commented Jul 21, 2022

In my case it was solved by running any device with API 30. It is worth mentioning that it was with the M1 chip.

@garrettg123
Copy link

This is happening to me with the newest Pixel 6 on API 33 and I've also tried on Pixel 4 API 30, Expo v44.

@boolfalse
Copy link

In case if anyone needs it։

Specifically in my case I've found that after running "expo start --dev-client" I had installed expo-dev-client.
So I just uninstalled that package, also for just in case removed node_modules and reinstalled npm packages again

npm uninstall expo-dev-client
rm -r node_modules
npm install

And after that it worked well as before.
My android physical device worked with v12, Expo v49, emulator was Pixel_7_API_34

I'm new to RN so don't have much knowledge, but clearing .apk caches didn't help me.
Actually I've had my app running well until working with EAS builds (for the Mapbox integration).

@ICardosoRamos
Copy link

GUYS, THIS PROBLEM IS THAT:
IN YOU EAS.JSON FILE, YOU HAVE ALL THE BUILD CATEGORIES, AND YOU CAN CREATE SOME CUSTOM CATEGORY, SO, IF YOU NEED SOME BUILD CATEGORY THAT RUNS WITH THE --DEV-CLIENT OPTION IN THE NPX EXPO START COMMAND, ALL YOU NEED TO GUARANTEE IS THE THE CATEGORY YOU CHOOSE HAS THE "developmentClient: true" FLAG INSIDE OG THE CATEGORY, LIKE:

	"development": {
		"developmentClient": true,
		"distribution": "internal"
	}

SO IF YOU DON'T HAVE THIS THE BUILD WILL NOT HAVE THE COMPATIBILITY TO RUN WITH --DEV-CLIENT OPTION.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests