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

The log info is : D/DebugDB: Open http://0.0.0.0:8080 in your browser #6

Closed
lhlhlh111000 opened this issue Nov 19, 2016 · 30 comments
Closed
Labels

Comments

@lhlhlh111000
Copy link

what's worry with me, i can not open the database…

@amitshekhariitbhu
Copy link
Owner

r u trying this with emulator ?

@lhlhlh111000
Copy link
Author

@amitshekhariitbhu yes

@amitshekhariitbhu
Copy link
Owner

@lhlhlh111000 I need to fix the issue happening with emulator.

@vinayagasundar
Copy link
Contributor

@lhlhlh111000 @amitshekhariitbhu I don't think we can control emulator IP address by code. but my simple solution for this is
In terminal
adb forward tcp:8080 tcp:8080

Open browser with http://localhost:8080

@amitshekhariitbhu
Copy link
Owner

@vinayagasundar thanks for the info. Will try it soon

@pratikbutani
Copy link

I am getting same problem. @amitshekhariitbhu

@lorenzos
Copy link

lorenzos commented Feb 3, 2017

@vinayagasundar workaround works for me too, but please @amitshekhariitbhu try to fix it! Using the default Android Studio emulators is the default option while developing, and it's incredibly faster than using real devices. Plus, after API 23 is not possible to use the Android Device Monitor to pull the DB files from the emulator device, so your debugger is practically the only available tool we have to inspect app data!

@amitshekhariitbhu
Copy link
Owner

@lorenzos sure sure... we will fix it in new release.

@Yadav-Sunil
Copy link

not open database in andriod device

@Aexyn
Copy link

Aexyn commented Mar 7, 2017

I am getting it on Real device too.
Android version: 6.0
Android device model: XT1092

@amitshekhariitbhu
Copy link
Owner

@Aexyn Your device was connected to wifi when you first started the app?

@Aexyn
Copy link

Aexyn commented Mar 7, 2017

@amitshekhariitbhu No.. It is connected to desktop the whole time

@Aexyn
Copy link

Aexyn commented Mar 7, 2017

Also it was unable to show the my database as I have a custom path where I store them

@chaoyangnz
Copy link

+1

@guyulmaz
Copy link

I work at android studio 3.0 canary 1
Same error:
05-24 12:44:14.270 14660-14660/...D/DebugDB: Open http://0.0.0.0:8080 in your browser
Can you help please.

@amitshekhariitbhu
Copy link
Owner

@guyulmaz Checking the issue. @vinayagasundar any idea?

@vinayagasundar
Copy link
Contributor

@amitshekhariitbhu @guyulmaz I'll check this and let you know.

@vinayagasundar
Copy link
Contributor

@guyulmaz are you sure your system & device connected to the same Wifi Network
if you're emulator or using USB please refer here

@amitshekhariitbhu

@guyulmaz
Copy link

@vinayagasundar
I'm using the emulator of android studio, the emulator is Nexus 5 api 24 (Android 7)

@vinayagasundar
Copy link
Contributor

@guyulmaz okay please check the work around here

@guyulmaz
Copy link

@vinayagasundar

\AppData\Local\Android\sdk\platform-tools>adb forward tcp:8080 tcp:8080
then
Open browser with http://localhost:8080

it works thanks

@tang5011235
Copy link

D/DebugDB: Open http://172.17.100.15:8081 in your browser
it is my Emulator ip,not my laptop ip, i could not open in my browser

@irudayambics
Copy link

I had the same issue. When switched back to WiFi network from my data connection everything worked. Good work.

@ozmium
Copy link

ozmium commented Aug 16, 2017

It seems that this happens when the device is using a 3G/4G mobile internet, instead of WiFi. Suggestion: Perhaps the app could detect "0.0.0.0" as a probable error condition and change the message -- something like this:

D/DebugDB: Open http://0.0.0.0:8080 in your browser. Warning: This address may not work. Ensure your Android device is on the same WiFi network as your computer, then Force Quit and restart the app.

@Kisty
Copy link

Kisty commented Sep 11, 2017

How about a small gradle plugin which would run adb forward tcp:8080 tcp:8080 automatically when running an app with the library in the classpath? I guess you could hook in to the install task or something.

@amitshekhariitbhu
Copy link
Owner

@Kisty This is good suggestion.

@amitshekhariitbhu
Copy link
Owner

@grandgrant which version of room database?

@ChenglongMa
Copy link

@lhlhlh111000 @amitshekhariitbhu I don't think we can control emulator IP address by code. but my simple solution for this is
In terminal
adb forward tcp:8080 tcp:8080

Open browser with http://localhost:8080

This tip works for me, just reminding that:
For real smartphone, http://0.0.0.0:8080 works on Mac OS, while http://localhost:8080 works on Win OS.
Thanks :)

@nilsi
Copy link

nilsi commented Jan 8, 2020

I had the same issue. But looking up the tablets IP and trying with that still worked.

@fahmieshaq
Copy link

Turn on your Wifi

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

No branches or pull requests