avd

Can't Delete AVD from AVD Manager in Android Studio

左心房为你撑大大i 提交于 2019-12-03 04:24:28
I am running Android Studio on OS X Yosemite. I am trying to simply delete an AVD from Android Studio AVD Manager. Every time I attempt to delete it I get the message "The selected AVD is currently running in the Emulator. Please exit the emulator instance and try deleting again." The problem is that the emulator is NOT running. I even closed down all the studio and rebooted the computer. It still says the same thing. Anybody seen this before? I would really like to remove the AVD. Thanks in Advance! Search for *.lock folders under .android folder and delete those. This should tell Android

Run a Custom ROM on an AVD

我的梦境 提交于 2019-12-03 04:18:01
问题 Does anyone know if this it is possible to run a Custom ROM on a AVD? ANd how can I do this? Thanks 回答1: If you build a custom rom by yourself, after you've built a custom rom you can launch it with the command emulator . But to do this you need at first to build your rom for emulator (usually, full-generic lunch option). If not you can just copy necessary images and also run them using emulator command. For instance, I usually copy .sh script in the folder with Android sources and run this

Why there is no “Nexus 5” in AVD Manager? What option to use instead?

拥有回忆 提交于 2019-12-03 02:53:38
I have installed the latest Android SDK (22.3). But there is no "Nexus 5" option in AVD Manager. Please see the picture: What option should I instead to emulate Nexus 5? I'm Android development newbie. The Nexus 5 got a 4.95-inch screen at 1080×1920 (1080p) screen resolution, 2 GB RAM, front-and-back cameras. This is the correct settings when creating a custom device definition. Both the Nexus 4 and the Nexus 5 have 2 GB RAM, but Google's device definition for the Nexus 4 has the RAM set to 1907 MB, hence I've used that here for the Nexus 5 too. I can create a device myself. Just choose a

Android Studio Emulator E/AudioFlinger error message

六眼飞鱼酱① 提交于 2019-12-03 01:30:36
When I start any device from the AVD Manager it just loops this error message infinitely: E/AudioFlinger: read failed: framesRead=-1 It even does that when I create a new device. Doesn't matter if "Use Host GPU" is enabled or not. When I start my application it would usually start up right after the emulated device started up. Since this error message appears it does not start my application automatically (the app can still be started manually though). Anyone else had any experience with that and maybe a possible solution? EDIT 1 : It stops looping the error message as soon as i hit the app

Android Emulator: Unable to start webcam to capture picture in emulator

狂风中的少年 提交于 2019-12-03 01:04:10
I have created an armeabi API 21 emulator in the AVD manager in Android Studio, set it to use the webcam as a front camera, and launched it. The problem is that it's not able to open it, as I'm getting this error: emulator: ERROR: camera_device_start_capturing: VIDIOC_STREAMON on camera '/dev/video0' has failed: Timer expired emulator: ERROR: _camera_client_query_start: Cannot start camera '/dev/video0' for NV21[640x480]: Inappropriate ioctl for device How can I solve this? The webcam works normally using other software. The operative system is Ubuntu 14.04. In Android Studio, go to AVD

What is the command to list the available avdnames

孤者浪人 提交于 2019-12-03 00:58:43
问题 I know I can start the emulator avd by typing emulator.exe @avdname But is there a command to list the available avdnames? Where are this avd configuration stored? 回答1: AFAIK android list avd avdmanager list avd is what you need. 回答2: Using sdk/tools/emulator This will list all available avds emulator -list-avds 回答3: List all your emulators: emulator -list-avds Run one of the listed emulators: emulator @name-of-your-emulator where emulator is under: ${ANDROID_SDK}/tools/emulator 回答4: I try

Can't launch AVD on macOS 10.13

笑着哭i 提交于 2019-12-03 00:55:52
I created some AVDs in Android studio 3.0, but I can't launch them. I used the following command to launch them: ./emulator @Nexus_5X_API_17 logs: emulator: WARNING: encryption is off Hax is enabled Hax ram_size 0x60000000 Failed to open vm 3 Failed to create HAX VM No accelerator found. failed to initialize HAX: Invalid argument And when I reinstalled "Intel x86 Emulator Accelerator(HAXM installer)", the logs: HAXM silent installation only supports macOS from 10.8 to 10.12 ! I don't know if it is related with this. After that, I tried to install virtualBox to install genymotion, but I found

Expanding the size of an Android Virtual Device (emulator) instance?

邮差的信 提交于 2019-12-02 23:20:29
On a relatively new emulator image (AVD) I have about 40mb of free space. How can I expand this? UPDATE: Just to be clear... I'm talking about the "Internal phone storage" size, not the SD Card size. Erich Douglass I think: $ emulator -partition-size <number of megabytes> is what you're looking for. I tried a few different values in the emulator and the "internal phone storage" setting seemed to reflect the values I passed in. If you're talking about the SD card size, I believe you'll need to make a new SD card file of a larger file, then load your AVD using the new SD card you've created.

How to set canOverrideExistingModule=true in React Native for Android Apps?

末鹿安然 提交于 2019-12-02 21:01:56
I built an android app using React Native, it got built successfully but when I run the app in my Android Virtual Device it shows up a full red screen with the following error: I have not done native app development ever before neither do I have any knowledge of Java so I have no idea what this error means and how to fix this. The name of the package associated to this error is not AirMapModule but MapsPackage from com.airbnb.android.react.maps . In your MainApplication.java in directory : android/app/src/main/java/../../ remove any duplicate entry of : the import package : import com.airbnb

Can't change emulated performance of AVD in Android Studio

我是研究僧i 提交于 2019-12-02 21:01:48
I can't change the graphics to software as I'm sure this is the fix for my AVD not launching. The option is greyed out (see screenshot). Has anyone has experience with this? I couldn't find anyone who had the same issue. I'm running the latest version of Android Studio on Ubuntu 17.04. Actually, this problem seems to be limited to devices with Play Store available, so Nexus 5X and Nexus 5 images will be forced to use Automatic Graphics, but all other devices allow you to choose either Automatic, Hardware or Software graphics. edit: I've just tested this today and it seems to no longer be the