I have downloaded Android Open Source Project and build it in Linux from command line. All are fine. I can use the emulator.
I installed also Eclipse and AVD via eclipse. Now I want to use the open source emulator that I build from command line. How can I do that?
Mahbub
From the shell in which you build AOSP you can run emulator and it will start an emulator which it built as part of AOSP along with the system image created in your AOSP build. You can also use the SDK provided emulator by passing it command line arguments for the kernel, init RAM disk, system partition and data partition.
Related
While running my cordova application through command promt I'm getting the following error:
No emulator images (avds) found.
1. Download desired System Image by running: "D:\Software\sdk\tools\android.bat"sdk
2. Create an AVD by running: "D:\Software\sdk\tools\android.bat" avd HINT: For a faster emulator, use an Intel System Image and install the
HAXM device driver
How can I fix this issue?
I'm new to this hybrid application development ,please help me out this issues.
Try below from your command line:
# create avd
android avd
# run emulator
ionic emulate android
I haven't work with cordova applications before, but I think the answer is clear, it's asking you to make an emulator so that your application can run on.
first, you need to run the .bat file specified on your local machine
D:\Software\sdk\tools\android.bat
choose the sdk. And then re-run the .bat file choosing avd.
and by doing so an emulator should be installed on your machine for the cordova application to run on.
This problem arises since i have downloaded genymotionn my mac, everytime i try to run my application it says the adb not responding, kill adb and restart manually
I have tried all the possible solutions out there in web but it's not working for me can anyone please help me out with this
SOLVED THE FOLLOWING BY RE-DOWNLOADING THE SDK AND REDEFINING THE SDK PATH
Hi Virus..
Android Studio does not contain ADB, you need Android SDK for it (it is installed on first run of Android Studio 0.9.x and newer). ADB is located in sdk\platform-tools.
It's possible to add to PATH in Windows and use Terminal inside Android Studio only by command: "adb shell" and after use "su" get root shell.
locate SDK platform tools folder (eg: C:\android\sdk\platform-tools)
open Enviroment Variables in Windows (http://www.computerhope.com/issues/ch000549.htm)
add Platform tools to end of PATH (eg: ;C:\android\sdk\platform-tools)
reopen Android Studio
use Terminal with command: "adb shell"
Older Windows will maybe need reboot after change PATH variables.
EDIT: From new Android Studio is Android SDK separate outside Android Studio folder and is downloaded after first run of Android Studio. For more info: tools.android.com/recent/androidstudio0814inbetachanne
I created an android project with the eclipse ADT from the android-bundle, and generated the apk. I downloaded and installed Genymotion with the integrated Oracle Virtualbox on my computer running Windows XP. How to run my application with Genymotion ?
If you have a genymotion emulator running ADB will detect it and give you the option to install it directly on it from eclipse. Another option is to install it through terminal by doing:
adb install myapk.apk
Before using adb from terminal remember to set up ANDROID_HOME, and add ANDROID_HOME/platform-tools to the path. Hope this helps
if you have APK than just Drag and Drop to Genymotion emulator by default it store in
/sdcard/download(its toast location where store file) go to there and manually install your APK
you can also put any file not only APK :)
This is online plugin for eclipse http://plugins.genymotion.com/eclipse
after install it you can use as native emulator.You can find icon in eclipse menu start emulator from it and run project
To deploy an application to a virtual device, use either of the following methods:
Drag and drop the application APK file into the virtual device window.
Run the following command: adb install .apk.
Download and install the application directly from the virtual device
using a web link.
I have downloaded and compiled Android source code per instructions on Android source website (http://source.android.com/source/building.html)
I chose
$ lunch full-eng
an emulator engineering build and everything has compiled just fine.
Then it says to launch the image inside an emulator just type:
The emulator is added to your path automatically by the build process. To run the emulator, type
$ emulator
Well, not sure it is added to the path. Typing emulator does not do anything.
However if I go to
out/host/darwin-x86/bin/emulator
emulator: ERROR: You did not specify a virtual device name, and the system
directory could not be found.
If you are an Android SDK user, please use '#<name>' or '-avd <name>'
to start a given virtual device (see -help-avd for details).
So I am confused ... at this point do I have to create an AVD ?
How do I create an AVD for this image exactly ?
Has anyone done this on MAC can they supply me with some instructions ?
Thanks
I'm not sure if there is any difference on osx, but it is a common error on Linux. After you build the whole AOSP, the building process will add the <AndroidBase>/out/host/<host-arch>/bin/emulator into the PATH, but after you restart your computer or open another session, emulator will no longer be in the path.
To fix the "You did not specify a virtual device name, and the system
directory could not be found" error, you can explicitly set ANDROID_PRODUCT_OUT to point to your disk image directory. In general, the disk image directory would be <AndroidBase>/out/target/product/generic. So
$export ANDROID_PRODUCT_OUT=<ANDROID BASEDIR>/out/target/product/generic/
would help.
Actually, you can run
. build/envsetup.sh
setpaths
It will do a similar work for you.
I build with aosp_x86_64-eng and have verified that the following will launch the emulator in a new terminal window:
cd /[your AOSP WORKING_DIRECTORY]
source build/envsetup.sh
lunch aosp_x86_64-eng
cd $ANDROID_PRODUCT_OUT
emulator
To make use of ASL library for my screen shot app on android,i need to install a script file (run.ps1) and run it on emulator ... So can any one tell me how can i do it...should i do it using ADB or using Eclipse...?
A .ps1 file appears to be a PowerShell script. PowerShell is a Windows application. Android is not Windows. Hence, if it is indeed a PowerShell script, you cannot run that script on Android.