Tag Archives: Android

How to Install Intel HAXM in a Machine with Hyper-V

Problem:

Intel HAXM helps speeding up Android emulators. However it cannot work in parallel with Hyper-V.

You want to install Intel HAXM without removing Hyper-V.

Solution:

Use the steps below to temporarily turn Hyper-V off to install Intel HAXM and launch Android Studio emulators.

  1. Open a Command Prompt or PowerShell as Admin
  2. Execute the command below to turn Hyper-V off
bcdedit /set hypervisorlaunchtype off

3. Restart your computer.

4. Install Intel HAXM

sdk

\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe
where

sdk

 is the location of Android SDK.

5. Verify Intel HAXM installation

sc query intelhaxm

To turn Hyper-V on again, use the steps below:

  1. Open a Command Prompt or PowerShell as Admin
  2. Execute the command below to turn Hyper-V off
bcdedit /set hypervisorlaunchtype auto start

3. Restart your computer.

 

How to completely uninstall Android Studio in macOS?

Problem:

You have an issue with Android Studio and want to reinstall it. In order to reinstall a fresh instance you need to uninstall the current version first.

Solution:

Execute these commands from the terminal:

rm -Rf /Applications/Android\ Studio.app
rm -Rf ~/Library/Preferences/AndroidStudio*
rm ~/Library/Preferences/com.google.android.studio.plist
rm -Rf ~/Library/Application\ Support/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
rm -Rf ~/Library/Caches/AndroidStudio*
rm -Rf ~/.AndroidStudio*

if you would like to delete all projects:

rm -Rf ~/AndroidStudioProjects

to remove gradle related files (caches & wrapper)

rm -Rf ~/.gradle

use the below command to delete all Android Virtual Devices(AVDs) and *.keystore. note: this folder is used by others Android IDE as well, so if you still using other IDE you may not want to delete this folder)

rm -Rf ~/.android

to delete Android SDK tools

rm -Rf ~/Library/Android*

Source: http://stackoverflow.com