Adding sdcard/usbdrive to android emulator - android-emulator

According to instructions in this site. I added cyanogenmod ROM to my Android AVD. The AVD works fine, but it fails to detect/mount sdcard.
Is there any way to get it working?
Can I mount other devices/harddisk/usbdrives in my AVD ?
Thanks for your time.

Related

Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] when attempting to run flutter app on android emulator on MacOS

I have been dealing with a very persistent error when attempting to run a flutter app on an Android Emulator (Android Virtual Device launched through Android Studio) through VS Code. Here is a screenshot of the errors:
I have attempted to wipe data & cold brew both my emulators & reopen the application folder to no avail. I am beginning to feel hopeless. If anyone can help me at all, I would really appreciate that. Thank you in advance :)
PS: here is how the emulator looks
if you wiped the emulator's data and it is still showing the error, try to increase your emulator's space,
Tools
AVD Manager
Locate the emulator you want to increase space, click the drop down
Edit
Show advanced settings
Edit the Internal storage
Restart the emulator if it's running
NOTE: Newer android studio versions do not have the Edit option inside the dropdown, it was moved next to the dropdown menu (The edit icon)
I had also faced same error on windows:
Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] Error launching application on Android SDK built for x86.
What I done was, just wiping out the data of emulator from android studio and it worked.
here there is an option of wipe out

Emulator device offline

I am trying to build android Oreo source code in ubuntu 14.04,it is built successfully but the emulator is not turning on.I tried by restarting the server and check for android devices,it shows that the device is offline and I am not able to turn it on.Suggest a way to solve this issue.Thanks in advance.
link followed-
https://source.android.com/devices

Cannot starting android emulator

I am studying about phonegap. I run Android Virtual Device Manager, selected a device and click started. After starting android emulator finished loading.
I saw emulator-arm.exe in the task manager and it took some memory resource. But no emulator appeared. After about 10 seconds, emulator-arm.exe disappeared from task manager.
I couldn't start Android Emulator. Please help me! Thank you!
Did you use the latest version of the platform-tools and the image? Run "android" script in your android-sdk/tools folder, and update all items related with emulators. Then, run "AVD Manager" in the root folder of the SDK. Then, create a virtual machine based on a real device of your choice. Then, run and wait, emulator takes some time to appear.
Other better choice would be use Genymotion emulator, which has more speed and stability. Good luck!

Cordova loading app into android emulator

I am totally new to Cordova, but now I have installed Cordova with NPM and installed Android SDK and set up an AVD which seems to work perfectly, until I want to emulate my project. Where the actual app for some reason is not loaded into the emulator.
The following action is done:
marvin:HelloWorld$ cordova -d emulate android
cordova library for "android" already exists. No need to download. Continuing.
Wrote out Android application name to "HelloWorld"
Wrote out Android package name to "com.example.hello"
Calling plugman.prepare for platform "android"
Preparing android project...
Processing configuration changes for plugins.
Iterating over installed plugins: []
Writing out cordova_plugins.js...
Running on emulator for platform "android" via command ""/home/marvin/Development/projects/HelloWorld/platforms/android/cordova/run" --emulator" (output to follow)...
Then it start Android emulator up, but the app is not there. Does anybody have a suggestion to fix this issue, so I am capable of actually testing in my emulator?
Thank you in advance.
I just had the same problem, and I was missing PATH to platform-tools in android sdk folder, after I added it everything was in place.
I had the same problem as well; I could run the cordova emulate android command just fine, and the emulator would eventually start up and function, however, the test app was never installed on the device. I was not getting any errors from the Cordova CLI or the console or anything.
I found that there is a bug report about this issue here: https://issues.apache.org/jira/browse/CB-4285
Two solutions have been found for this issue:
1. Make sure you are using an Oracle JDK and not an IBM JDK, and
2. Make sure the AVD that emulate starts up has a min-target-sdk set to API 10 (Android 2.3.3) or higher. (This was my problem.)
Sometimes it works deleting the previously installed version of the app in the emulator. For this you could also launch it with the option "Wipe user data" checked.
Just for the record, none of the other solutions worked for me.
I had the same issue. Following solved it for me.
Make sure that API level of your AVD is greater than minSdkVersion specified in config.xml specified in your cordova app.
If anyone still having this issue:
I had a same problem with device being offline.
if ddms is running it looks after connected devices.
adb kill server
and than run ddms
Also make sure your app id doesn't begin with a number or any other character like "_". For example, if your app id is com.4company.MyApp or com._company.MyApp it just won't load on the emulator. The first one is because Java doesn't allow names beginning with a number, and the second one I guess it's a Cordova thing.
You should also use adb logcat to show the emulator errors on the command line.
For me, the app was not starting up because I had a second emulator running in the background. Uninstalling bluestacks (android emulator for windows) fixed the issue in my case. Running "adb logcat" should tell you if you have multiple emulators running.
I just had the same problem, and It was my emulator device that was with the API 15. Just updated to API 17 and the problem solved.

I got an error while running an Android Project

[2011-11-15 22:29:18 - MyAndroid] Failed to install MyAndroid.apk on device 'emulator-5554': device not found
[2011-11-15 22:29:18 - MyAndroid] com.android.ddmlib.InstallException: device not found
What troubleshooting steps have you done?
Has the app been installed on the emulator previously? If so, fully uninstall the app from the emulator first.
Try closing the emulator, and eclipse (if using eclipse). Then restart and try again.
If the issue keeps happening, you may need to delete the 'cache.img' in your AVD directory.
And if that doesn't help, delete the AVD, and recreate it.