Code Monkey home page Code Monkey logo

Comments (30)

vinayagasundar avatar vinayagasundar commented on May 17, 2024 27

@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

from android-debug-database.

amitshekhariitbhu avatar amitshekhariitbhu commented on May 17, 2024 7

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

from android-debug-database.

guyulmaz avatar guyulmaz commented on May 17, 2024 3

@vinayagasundar

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

it works thanks

from android-debug-database.

Kisty avatar Kisty commented on May 17, 2024 3

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.

from android-debug-database.

irudayambics avatar irudayambics commented on May 17, 2024 2

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

from android-debug-database.

ozmium avatar ozmium commented on May 17, 2024 1

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.

from android-debug-database.

amitshekhariitbhu avatar amitshekhariitbhu commented on May 17, 2024

r u trying this with emulator ?

from android-debug-database.

lhlhlh111000 avatar lhlhlh111000 commented on May 17, 2024

@amitshekhariitbhu yes

from android-debug-database.

amitshekhariitbhu avatar amitshekhariitbhu commented on May 17, 2024

@vinayagasundar thanks for the info. Will try it soon

from android-debug-database.

pratikbutani avatar pratikbutani commented on May 17, 2024

I am getting same problem. @amitshekhariitbhu

from android-debug-database.

lorenzos avatar lorenzos commented on May 17, 2024

@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!

from android-debug-database.

amitshekhariitbhu avatar amitshekhariitbhu commented on May 17, 2024

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

from android-debug-database.

Yadav-Sunil avatar Yadav-Sunil commented on May 17, 2024

not open database in andriod device

from android-debug-database.

Aexyn avatar Aexyn commented on May 17, 2024

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

from android-debug-database.

amitshekhariitbhu avatar amitshekhariitbhu commented on May 17, 2024

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

from android-debug-database.

Aexyn avatar Aexyn commented on May 17, 2024

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

from android-debug-database.

Aexyn avatar Aexyn commented on May 17, 2024

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

from android-debug-database.

chaoyangnz avatar chaoyangnz commented on May 17, 2024

+1

from android-debug-database.

guyulmaz avatar guyulmaz commented on May 17, 2024

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.

from android-debug-database.

amitshekhariitbhu avatar amitshekhariitbhu commented on May 17, 2024

@guyulmaz Checking the issue. @vinayagasundar any idea?

from android-debug-database.

vinayagasundar avatar vinayagasundar commented on May 17, 2024

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

from android-debug-database.

vinayagasundar avatar vinayagasundar commented on May 17, 2024

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

@amitshekhariitbhu

from android-debug-database.

guyulmaz avatar guyulmaz commented on May 17, 2024

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

from android-debug-database.

vinayagasundar avatar vinayagasundar commented on May 17, 2024

@guyulmaz okay please check the work around here

from android-debug-database.

tang5011235 avatar tang5011235 commented on May 17, 2024

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

from android-debug-database.

amitshekhariitbhu avatar amitshekhariitbhu commented on May 17, 2024

@Kisty This is good suggestion.

from android-debug-database.

amitshekhariitbhu avatar amitshekhariitbhu commented on May 17, 2024

@grandgrant which version of room database?

from android-debug-database.

ChenglongMa avatar ChenglongMa commented on May 17, 2024

@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 :)

from android-debug-database.

nilsi avatar nilsi commented on May 17, 2024

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

from android-debug-database.

fahmieshaq avatar fahmieshaq commented on May 17, 2024

Turn on your Wifi

from android-debug-database.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.