Cannot access internet with apkmirror chrome with Android Studio - android-studio

I've got some trouble with Android Studio.
I installed Android studio
I created a nexus 6 device
add apkmirror to have chrome on my emulated machine
I tried localhost 10.0.0.2:8080 and others but I don't have access to internet (just with chrome) and I don't have access to the project 😣
I saw this solution on stackoverflow How to connect to localhost from Android Studio emulator but I don't know how to proceed
when I checked the console, here is the message:
(node:61008) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)
I thought the problem was my apkmirror that I chose. I tried 5-6 differents apkmirror: same result. No internet with chrome on Android Studio
Can someone suggest another solution?
Illustration:

Related

can I use chrome://inspect to inspect android studio emulator

I have a mobile app apk file and want to run it through the android studio emulator and inspect network requests with chrome//inspect. To debug webview in the app.
But when I go to chrome//inspect. I can see the emulator but not inspect link.
I am not sure why the inspect link doesn't appear and whether I could inspect the emulator in the first place.
Suggesting me alternative ways to debug webview on Macbook will also be appreciated.
PC: Macbook 16 pro / MacOS Ventura 13.0.1
I don't have the source code of the app, Only apk file.
Thank you for your help!

Problem processing route in Ember.js app when building and running app in Android studio emulator

Trying to build and run an Ember app with Capacitor on virtual device in Android studio. Build and installation goes fine until the app is launched and stops when trying to process a spesific route. The problem only occurs when building from windows, no problem on Mac. The app is communicating with a jsonapi.
Error message in chrome device inspector: "Error while processing route [routename]"
I have tried with physical device connected getting the same message. Also tried with Genymotion plugin.
Capture of browser console:
chrome console error
And this is what logcat is giving:
logcat error
I also have some errors reported from the IDE (Android Studio) not related to running the Emulator but occurs when opening the IDE:
Android Studio errors. In case this has something to do with it.
Solution in this case:
Had to reinstall node js with another older version. Did an npm cache clean and built the app all over again. Also made sure to open the project with npx cap open android.

Error on Android Studio emulator: Could not connect to developer server - React Native

I'm new to react native. Recently I started to have this error on Android Studio emulator "Could not connect do developer server". Also see the screenshot to the error on the emulator. The error appears each time I try to reload the page to see the changes made on Visual Code, pressing "R,R". Does anyone have already face and fix this error successfully?
Here is what I tried so far:
Installed Metro and added the folder "assets" in in metro-config
Verified that the emulator is connected to the wifi, airplane mode is disabled
Added the port "localhost:8081" in the Dev setting
Downgraded Node.js from the latest version 16.14.2, to and older one 14.17.4 and then tried 14.16.1. It still didn't work, even after I restarted the laptop
Closed everything and run the command "react-native run-android" again, still get the error when I reload the emulator...
Any idea on the cause of this problem and how to fix it?
Thanks in advance.

Can't run app on phone or emulator with Android Studio: adb.exe start-server failed -- run manually if necessary

Some time ago, my android studio got a problem. It can't find my phone. I get this error:
Unable to run 'adb': null
'C:\Users\Gebruiker\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server' failed -- run manually if necessary
When I open the taskmanager I can see adb.exe opened multiple times, but I am unable to force stop it.
I didn't have this problem before. I tried everything I could find on the internet. I deleted and downloaded android studio multiple times, made sure all the files were gone, tried an older version, tried the no .exe installer but none worked.
I also checked the cable and tried another one.
My computer can see my phone because it's listed in the explorer so the problem is with android studio.
EDIT: I tried to run on an emulator, but got the same error and another one:
ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037
EDIT 2: I downloaded android studio on a different computer and had no errors. I used the same device and usb cable. Everything worked normally so the problem is with my computer.
I hope someone can help me.
I thank you in advance!
I found out the problem. The anti virus software (Bullguard) blocked it. I had bullguard open during launching android studio and a popup asked for permission for adb.exe. I didn't get this popup when I hadn't open android studio and bullguard together.

Android Studio unable to find adb & can only use skd gphone x86 as AVD

I am unable to launch any AVD other than “sdk gphonex86 arm (mobile)” and when I hover over the AVD I would like to use, it appears as such:
Not applicable for the main.dart configuration
Flutter Doctor does not appear to note any relevant issues:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.17.4, on Microsoft Windows [Version 10.0.19041.264], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[√] Android Studio (version 4.0)
[!] Connected device
! No devices available
! Doctor found issues in 1 category.
When I attempt to open the AVD I would like to use via the drop-down, I get this error in the Event Log:
Error Opening Emulator
emulator: ERROR: Running multiple emulators with the same AVD is an experimental feature…
When I create a new virtual device and then attempt to use it, I get this error:
Unable to locate adb.
However when I attempt open the AVD again, I get this error:
AVD_Test_Nexus is already running
Per other posts on this topic, I have not found that my antivirus software (only Windows Defender) has quarantined the file, and I have uninstalled and reinstalled the Android SDK Platform-Tools several times.
When I attempt to delete the AVD itself, I get an error stating:
An error occurred while deleting the AVD. See idea.log for details.
Any help would be very much appreciated.

Resources