Unable to open the avd which is created - java

i created a avd named droidX which later wen i am starting that avd it could not open it just hangs showing "Starting emulator for droidX"

you can use bluestack emulator http://www.bluestacks.com/
1) open bluestacks emulator.
2) go to your environment variable settings and click on path variable and add the path of your abd in the platform-tools folder (Optional if you have done it before.)
3)open cmd and type adb connect adb connect 127.0.0.1
4)now open eclipse and click on project -> run as-> Android Aplication and you should see blueStack emulator running.

Related

How to grant Android studio acces for opening androidSDK in C:\Program Files

I'm an absolute Android beginner, I just downloaded android studio and I tried to launch my first Android project ever. However, for some reason I can't launch the android studio emulator.
The error i'm getting is:
C:\Program Files (x86)\AndroidSDK\tools\emulator.exe" -netdelay none -netspeed full -avd Nexus_5_API_23
Hax is enabled
Hax ram_size 0x60000000
HAX is working and emulator runs in fast virt mode.
qemu-system-i386.exe: -drive if=none,index=0,id=system,file=C:\Program Files (x86)\AndroidSDK/system-images\android-23\google_apis\x86\/system.img: could not open disk image C:\Program Files (x86)\AndroidSDK/system-images\android-23\google_apis\x86\/system.img: Could not open 'C:\Program Files (x86)\AndroidSDK/system-images\android-23\google_apis\x86\/system.img': Permission denied
If I understand correctly the emulator can't get permissions to the system images without administrator rights since the SDK(image-files) are located under my C:\Program Files(x86) directory.
Q: Is there a way to easily give permissions to these files?
If not..
Can I just switch my AndroidSDK folder to another location without messing other things up?
Have you tried running the IDE in admin mode? If you're on Windows you can right-click and run as administrator.

Cannot be root on Android Emulator

I'm currently trying to develop an application for Android devices on an Android Emulator. I installed Android 4.3 on a VMWare Workstation, on a Windows 10 OS.
I want to test the app I'm developping on the Android emulator, so I have to create a bridge connection between my phyisical computer where I develop the aps, and the emulator, where I can test it. But when I try to create this bridge, I have to change settings and to be root of the emulator. When I try to do a 'su' command, I have the following error :
'su : uid 10000 not allowed to su'
I tried to follow this tutorial to give me the root acces of the emulator, but it didn't worked for me. The best answer is to execute this commands :
adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
adb push su /system/xbin/su
adb shell chmod 06755 /system
adb shell chmod 06755 /system/xbin/su
How to get root access on Android emulator?
More over, When I did the installation of the Android Emulator, I've done the installation specifying the read-write option.
It is not working for me, because when I try the first row, I obtain this message :
ADB error : 'device not found'
Such as it is described in this link :
How to fix: Error device not found with ADB.exe
But the answer exists for a phone, and not for an emulator. Do you know how to fix it ? How can I be root, and how can I found the 'device not found' ?
Here are the different parameters of the VM
su stands for super users which is available only on rooted device. it is more like using android application with administrator privilege.Try using BLuestacks rooted version.

Android Device Not Detecting In Eclipse

I am trying to run my application on my Device from the Eclipse In windows.But my device is not detecting there in the eclipse.
My device driver is updated. In My device, I turned on "USB debugging mode" in Settings->Application->Development and also "Allow installation of non-market Applications" in Settings->Application->Development. And in Eclipse Target tab, selected "Always prompt to select device". My ProjectBuildTarget is not newer than my device's version. And tried adb kill-server also.
When i run adb devices it shows nothing in my command prompt.
How do I get Eclipse to load my app to my phone instead of my AVD?
When i tried it in my Mac machine It works perfectly..
Any solutions? Please suggest me..
Please try the following:
Go to settings in your phone
Go to storage menu
Select connect as MTP
Worked for me!
If you are using a MAC OS.... no need to install the Driver
But for Windows, try this http://developer.android.com/training/basics/firstapp/running-app.html#RealDevice
Debugging to phone
Please see the link above, the process is defined there from google.
close you AVD if its running, then re-plug your Mobile device, check in your phone USB debugging notification should come.
try deleting your AVD and leave your phone connected, then restart your IDE. Make sure you've downloaded the OEM USB drivers. If it still doesn't appear on the list, hit refresh then just run your app.

Android- Stuck with Running Project [duplicate]

This question already has answers here:
Android Failed to install HelloWorld.apk on device (null) Error
(22 answers)
Closed 9 years ago.
I'm Developing an Android Application for the Tablet Devices . When I run My I mostly get an Error in the console which is given below
[2013-03-15 15:52:01 - Gprs] Failed to install Gprs.apk on device 'emulator-5554!
[2013-03-15 15:52:01 - Gprs] (null)
[2013-03-15 15:52:01 - Gprs] Launch canceled!
I think any one of the following alternatives will work:
Try to chang the ADB connection timeout. I think the default is 5000ms and we need to change this to 10000ms to get rid of the problem. If you are in Eclipse, you can do this by going through Window -> Preferences and then it is in DDMS under Android.
Restart the device.
Increase SD card volume and max VM app heap size. For this edit the virtual device and do the modifications. Any change of emulator parameters and its rebuilding also fine.
Build the application. Then Install the apk using command prompt.
adb install
You can try these steps:
Try changing the ADB connection timeout. If you are in Eclipse, you can do this by going through Window -> Preferences and then it is in DDMS under Android. Default is 5sec, try making it 10 seconds.
If this doesn't works restart your device
Or try,
adb kill-server
adb start-server
command from command-line.
Try to change the ADB connection timeout.
Default - 5000ms
Change it to 10000ms
If you are in Eclipse, you can do this by going through Window -> Preferences and then it is in DDMS under Android.

Eclipse doesn't find my already running Android emulators

Configuration
Os: OSX
IDE: Eclipse Juno
I don't know why but when I try to run again my Android app, the "Android Device Chooser" frame opens but my emulators are not shown in "Choose a running Android device" section. What should I do ?
Goto the DDMS view and try resetting the ADB as shown---
Please check the required API levels of the application and than on the device.
Try to run following commands in terminal that will renew the adb server state :
adb kill-server
adb start-server
You can try to use adb over the wifi and than no cables will needed.

Categories

Resources