E
E
Elbek M2020-05-04 17:16:24
Android
Elbek M, 2020-05-04 17:16:24

How to access internet in app in AVD?

The fact is that the emulator has access to the Internet, the browser and other applications have access to the Internet. But specifically in my application there is no access. I'm trying to connect with Firebase but it's just an endless wait. If I run the apk of my application on a real device, then everything works. What could be the problem? (compileSdkVersion 29)

Here is the code block from the manifest:

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Elbek M, 2020-05-04
@Elbek_M

I decided at random ...
If anyone has a similar problem, then I did this: first I turned off Wi-Fi on the emulator, turned on LTE, removed traffic restrictions, cleared the project, deleted the application from the emulator, left only the first line from the manifest, closed the android studio, reopened and relaunched everything .. it was in this sequence that everything worked .. :/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question