Intellij 14 and Android AVD - java

I've recently upgraded my Intellij to version 14. I wanted to create some Android application so I created a new project. Then I wanted to start an emulator so I used the AVD manager from within Intellij and created a new AVD. But then trying to run the application failed as the AVD couldn't be run.
Waiting for device.
/usr/local/Cellar/android-sdk/23.0.2/tools/emulator -avd AVD_for_Nexus_5_by_Google -netspeed full -netdelay none
PANIC: Could not open: AVD_for_Nexus_5_by_Google
Now the thing is AVDs created by Intellij are stored in ~/.android/avd whereas those created by AVD manager from Android SDK are in /usr/local/Cellar/android-sdk/23.0.2/.android and these run fine.
I'm not sure what am I doing wrong, I don't recall having issues with Intellij 13 although I haven't played with Android for a long while now.
Any help would be appreciated :)

I was facing the same issue on Ubuntu, Windows 7 and Windows 8 machines. For some reason if you have selected your emulator ABI as x86 or x86_64 then it doesn't start, however, if you select armeabi-v7a, it should start.

Related

GRPC Server error while running android app on emulator

So, I am new to android and trying to run my first app. Created an empty activity project and tried to run it using the emulator. I am getting the following error:
23:20 Emulator: emulator: WARNING: EmulatorService.cpp:448: Cannot
find certfile: C:\Users\myUser\.android\emulator-grpc.cer security
will be disabled.
23:20 Emulator: Started GRPC server at 127.0.0.1:8554
I am have tried installing the latest SDK from SDK tools, restarted the system. Still not good. Can Someone help?
Android Studio Details:
Android Studio 3.6.1
Build #AI-192.7142.36.36.6241897, built on February 27, 2020
Runtime version: 1.8.0_212-release-1586-b04 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1246M
Cores: 4
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins:
This seems to be quite a frequent recent problem, there are a few threads about it, for example: here and here among others.
I have had this problem myself, and what worked for me was to keep the emulator running, uninstall the app you just tried to run from within the emulator, and then re-run it from Android Studio (which will re-install it in the Android device in the emulator). When re-installed, it works fine.
Others in the aforementioned threads seemed to have luck with choosing:
File -> Invalidate Caches / Restart in Android Studio, but this did not make any difference for me.
I hope you find a solution.
A "Cold Boot Now" of AVD helps me. Tools > AVD Manager > "The drop-down on rigth side" > Cold Boot Now.
I still get the certfile error, but grpc works.
Issue fixed now with the newest Updates for Canary Release of Android Studio (Emulator 30.0.10 Canary)!
See Release Updates:
Removed prints about certs and GRPC on startup.

Unable to Open Android Studio

I have Windows 10 32 bit and I've installed Java, After installing Android Studio when I'm trying to open it, it's not opening, no prompt, no error message nothing. I've tried all methods available on the Internet include JAVA_HOME and all still in vain, Please help. It's windows 32bit so android studio is just a zip file, when I tried Android studio 1.5 which do comes with Installer, it worked fine!
I think that you have to uninstall Android Studio and try to reinstall it.
Go to terminal "Win + R and type cmd" inside type java -version.
If it is installed, try to install Android again, else, just download java jre and java jdk and after install Android Studio.
However, you can try to go task admin and check if you have Android Studio running. Kill it if you have it started and after try to open Android Studio

Android SDK on Mac: jspawnhelper quit unexpectedly

I just installed Android Studio (after wiping everything away from previous installations of either android studio and android SDK), I created a new app (from the templates, didn't edit anything), and I tried to run it in an emulator. I went through the process of creating a AVD (which crashes from Android Studio, but works if I start the tool directly from outside), but no matter what, it fails to run.
I always get a "jspawnhelper quit unexpectedly." error.
My system:
OSX 10.7.5 (and don't ask me to upgrade, please)
Java 1.7.0_79 (I also tried with 1.8, it's worse)
Android Studio 2.1.1
Android
SDK for API 23 and 22 installed today.
I have no clue what jspawnhelper is, and honestly, I couldn't care less. I just want to install Android Studio and start writing some code.
Seems like I found the answer and, as usual, is not the answer I want to hear ...
Android Studio requires OSX 10.8.5.
unable to create AVD with android sdk on Mac OS
I'm not upgrading this macbook even if somebody points a gun at me ... time to go shopping, or install linux.

Unable to create Android Virtual Device in eclipse, (Ok button is clicked but no action performed)

I am new to android app developing, I am trying to run my android application in AVD available in eclipse but the thing is I'm unable to create a new AVD.
(Previously a AVD was there in eclipse but it was not worked as fast, so i deleted that)
Its possible to fill all the necessary fields given for creating a new AVD, finally when OK button is clicked there is no action performed in eclipse IDE.
Can anyone know whats exactly blocking me from creating a new AVD. Here is my screenshot.
I was also facing trouble to create AVD on my eclipse. Although my real device Galaxy S3 is working nicely as online AVD. I needed to download & install the correct driver for that and it started to do the job. But I am still searching for the real reason of the problem creating the virtual one. But here is the cofig, what is working for me now, after a long time trying.
After facing problem, first of all I installed all the package file including the Intel X86 Atom System Image for my required Android Version(For me it's Android 4.3 API 18). So that I can select the Intel Atom x86 as the CPU/ABI while creating the AVD.
And don't forget to install the Intel x86 Emulator Accelerator(HAXM) installer under the Extras on Android SDK Manager.
Here, what was my config for the AVD
Device=Nexus 7 (7.02)
Target=Android 4.3
CPU/ABI=Intel Atom (x86)
SKIN=HVGA
RAM=2048
HEAP=64
Internal Storage=2000
External=2000
Emulation Options=Tick on "Use Host GPU"
And please keep patience, as it will take a while to start the AVD.

Cannot create AVD - Eclipse, MAC OSX, Android 4.4.2

I cannot create a new AVD in Eclipse on MAC OSX for testing.
Situation:
I have installed System Images for Android 4.4.2.
I have checked for update under "Help".
I have checked the location for android SDK.
I have installed older versions of Android with related system images.
When I try to create it just waits, when I click "OK". Nothing happens - even if I wait for minutes.
Any suggestions?!
I got the same problem on MAC OSX, SDK 22.6, unable to create a new device up to 4.0
My answer is inspired from here:
Cannot create or edit Android Virtual Devices (AVD) from Eclipse, ADT 22.6
and
https://code.google.com/p/android/issues/detail?id=66661
and
Eclipse can't create new AVD
I proceed like this:
(1) launch avd from commandLine : android avd
(2) Choose device definition then clone a new devices: e.g Galaxy nexus by google
(3) Create a new device from the cloned device and set as target API 4.4.2, then
(4) set the SD card size to 1000MiB, Click OK
(5) Finally start the Emulator.
I tested, and it works.
This is a strange issue that I just encountered as well, here is my solution:
1) Start avd from command line:
1.1. Open Terminal
1.2. Use the cd command to navigate to the tools folder in the android SDK
--> cd <Path to Android SDK>/tools
1.3. type ./android avd
2) Create a new device in the device manager that just opened up
Run AVD manager from terminal and then create AVD.
To do this, cd to android sdk tools folder and run AVD manager with following command:
android avd
U can try create using AVDManager.exe on your android folder, not from inside eclipse.

Categories