Why is “adb install (my APK)” triggering “can’t find service: package”?

You have essentially answered your own question while asking it. The root of the problem is that the emulator is not setup properly (evidenced by the system UI not loading). When Android can’t boot properly, it is likely to fail to start some system services (in this case, the package service). The solution is to … Read more

Android Studio AVD Manager button is disabled

This generally happens when Android Studio is not able identify the android sdk installation in the machine. This could happen if Android Studio is launched in non-Administrator mode. Just close and relaunch Android Studio in administrator mode. You will see a saying “android framework is identified” Click on the configure link on that notification. The … Read more

Samsung Galaxy S II AVD (Android Virtual Device) Basic Settings?

The interface to the AVD manager has changed. So there are changes needed to the process. Rather than a single file, there’s now both a device definition and a virtual device definition. Unfortunately, the UI doesn’t give full control over the contents of either. These instructions work with the Android SDK Tools revision 21. They … Read more

How can i simulate accelerometer in android emulator? [closed]

The Android emulator doesn’t support it itself but OpenIntents’ SensorSimulator fills the void. Download and unpack the zip file, then start the standalone jar file: $ java -jar bin/sensorsimulator.jar Next, install SensorSimulatorSettings on the emulator using the adb tool which comes with the SDK: $ adb -s <emulator device> install bin/SensorSimulatorSettings.apk (run adb devices to find the … Read more

How to open the AVD manager on Ubuntu Linux from the command line?

For thoose coming here because the android avd command has been deprecated*, here’s how to do it now: Using Android Studio Open Android Studio with a valid studio project (if you don’t have one, simply create one empty). After you’ve your project open, go to Tools => Android => AVD Manager. Note that this menu … Read more

Android 4.4 Virtual Device Internal Storage Will Not Resize

Now that the emulator file system is ext4 I was able to re-size the userdata.img using standard Linux tools. # Navigate to AVD cd ~/.android/avd/Nexus5 # Delete old image rm userdata-qemu.* # Re-size the image resize2fs userdata.img 512M # Start the emulator and enjoy emulator @Nexus5 Edit I was also able to re-size userdata-qemu.img directly … Read more

Can’t launch AVD on macOS 10.13

Use the new Hypervisor.Framework support instead of HAXM on macOS, as described in the comments of the issue filed for this: Try running the emulator on Canary channel 26.1.x (API 25/26 recommended) with Hypervisor.Framework; put the text “HVF = on” in ~/.android/advancedFeatures.ini (create this file if it doesn’t exist already).

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)