Cannot find certfile - android-studio

I've been facing a problem while launching my emulator in Android Studio
these 2 lines appear:
Emulator: emulator: WARNING: EmulatorService.cpp:448: Cannot find certfile: C:\Users\HP.android\emulator-grpc.cer security will be disabled.
Emulator: Started GRPC server at 127.0.0.1:8554.
And then all I see on my phone is "HELLO WORD"
How to solve it?

Open the AVD Manager in Android Studio by selecting Tools > AVD Manager menu. In the opened popup, choose Wipe Data option as can be seen below image. After that, restart emulator, hope it would work.

Related

Android Studio emulator will not open the chrome browser

System info:
Android Studio Chipmunk | 2021.2.1 Patch 1 Build #AI-212.5712.43.2112.8609683, built on May 18, 2022
Runtime version: 11.0.12+0-b1504.28-7817840 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.4.199-1-manjaro
Issue:
If I try to open the Chrome browser in Android Studio's emulator, when I get to the "Turn on sync?" screen, if I tap "No thanks" or "Yes, I'm in" the emulator completely locks up. I'm unable to swipe and close Chrome browser or do anything. I can only crash the emulator. Then I "wipe data" and try again.
Anyone know how to get past this so I can open the Chrome browser in the emulator? Webviewer works just fine, but opening Chrome directly in the emulator does not.
I've tried different SDK's, but at this point I cannot find a remedy for this odd issue.
Screenshots:
Running the emulator with the -feature -Vulkan worked for me. You will need android emulator cli installed.
To see your avd devices enabled run: emulator -list-avds
In my case, I'm using Pixel 6, so i runned: emulator #Pixel_6 -feature -Vulkan
Worked like a charm.
PS: I actually got the answer from the author's issue at IssueTracker. Just posting this here to help others with same problem.

android studio emulator not selectable

I want to start coding with flutter, so i decided to download android studio.I created an avd called "Pixel 2 API 28" with android pie. When i want to select the pixel 2 as the avd device, the programme tells me that theres no avd, but on the right i can see the avd i created. When i put my cursor on it, it says "not applicable for the main.dart configuration". i have HAXM installed and Hyper-V is disabled, but i also tried it with both being active. I used the default code, which appears when you launch android studio.
Please help!!!
Edit:
I somehow managed to select it now, but i get this error: Running multiple emulators with the same AVD is an experimental feature. Please use -read-only flag to enable this feature.
Try starting the emulator from avd and then check if the device is showing up there if not try running
flutter devices
If the device shows there you can try running
flutter run -d <your-device-name>
You can also check whether the android sdk is configured with flutter try running
flutter config --android-sdk /path/andriod/sdk
hope it helps
Close Android Studio and Run again as Administrator
This is Only the solution i got after working hard for 3 days.

Android studio, Bluestacks Installation failed due to: 'closed'

I am trying to build an android app using bluestacks (my phone died)
Android studio can see the emulator in the devices list but when i try to run my app, android studio throws this error:
Installation did not succeed.
The application could not be installed.
Installation failed due to: 'closed'
Retry
I have tried launching both android studio and bluestacks as administrator.
I have also tried opening the standalone device monitor in the SDK tools folder
This throws another error :
could not open Selected VM debug port(8700)
The error log of the monitor contains lots of errors of missing directories.
error log: https://pastebin.com/mmA83ch7
thanks
Go to Settings -> Preferences and Enable Android Debug Bridge, Enable android input debugging
So someone on the bluestacks team decided that putting an adb toggle in "Preferences" and not in "advanced" was a good idea,
also literally not on any other single post has anyone said to make sure adb was toggled on.
the seting is in Setings -> Preferences, at the bottom
Open BlueStacks Go to Settings -> Advanced and Enable Android Debug Bridge, Enable android input debugging
Restart Bluestack and then Android Studio, this will make the connection.
happy debugging :)

Android Studio 3.3.1 Emulator bug

I'm a new Android Studio user, but I've already done something in the last few days.
I have only a problem with the emulator. I tried to run my code with a normal Virtual Device, but every time I always got the same error:
Emulator: emulator: ERROR: x86 emulation currently requires hardware acceleration!
Emulator: Process finished with exit code 1
I tried to find a solution in the internet, and I found that the problem was my computer (it is an AMD) and I had to download the "armeabi" version when I created a new virtual device.
It worked (I have no more errors), but my emulator is always black and I cannot see anything. I was forced to use Debug USB on my personal phone, to plug in and use it (and it works) but I'd like to solve the problem with the Android Studio emulator. My Android Studio version is 3.3.1, the latest.
Obviously when I have a preview clicking on the file "activity_main.xml" I can see the right output.
Normally I use Nexus 5 and I've tried with Marshmallow and Nougat.
Increase your VM Heap & try it again.
Tools -> Android -> AVD Manager.
Select a virtual device and click on its pencil icon (edit)
Click on Show Advanced Settings.
Under "Memory and Storage" change "VM Heap"
If above is not helpful, Please Check "Wipe user data" in the Launch Option
Go to Android Virtual Device Manager->Select your device->Start->Check "Wipe user data"->Launch
make sure that Intel x86 Emulator Accelerator is active

Apk is not being uploaded when the emulator runs for the first time

Emulator was working fine but suddenly it has come up with this :
emulator: WARNING: Classic qemu does not support SMP. The hw.cpu.ncore option from your config file is ignored.
emulator: device fd:1280
HAXM is working and emulator runs in fast virt mode
Your emulator is out of date, please update by launching Android Studio:
- Start Android Studio
- Select menu "Tools > Android > SDK Manager"
- Click "SDK Tools" tab
- Check "Android SDK Tools" checkbox
- Click "OK"
The apk is being uploaded only when the emulator is online and not when its first launched . I tried the above steps but the Android SDK Tools are up to date .And nothing happens when i click "OK". How and What can resolve this ?
I had also problems with this and I could never fix this. Maybe there is a timeout for waiting ob the emulator start up. So if the startup task too long, android studio cancels the deploying.
Alternatively try Geny-Motion (https://www.genymotion.com/). In my opinion it is much faster and easier to handle. Also the setup and integration is very simple.
I've been having the same problem. This isn't a fix, but I've taken to simply starting the emulator manually. Then, when running my project, the APK is correctly copied.

Resources