Skip to content

Commit 7f62073

Browse files
author
Vladimir Enchev
committed
Create Android default emulator
1 parent 6cba2ba commit 7f62073

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

setup/native-script.ps1

+3
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ echo y | cmd /c "$androidExecutable" update sdk --filter "android-23" --all --no
105105
echo y | cmd /c "$androidExecutable" update sdk --filter "build-tools-23.0.2" --all --no-ui
106106
echo y | cmd /c "$androidExecutable" update sdk --filter "extra-android-m2repository" --all --no-ui
107107

108+
echo y | $ANDROID_HOME/tools/android update sdk --filter extra-intel-Hardware_Accelerated_Execution_Manager --all --no-ui
109+
echo y | $ANDROID_HOME/tools/android update sdk --filter sys-img-x86-android-23 --all --no-ui
110+
echo no | $ANDROID_HOME/tools/android create avd -n Emulator-Api23-Default -t android-23 --abi default/x86 -c 12M -f
108111

109112
Write-Host -ForegroundColor Green "This script has modified your environment. You need to log off and log back on for the changes to take effect."
110113
Pause

setup/native-script.rb

+4
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,8 @@ def install(program_name, message, script, run_as_root = false, show_all_option
121121
execute("echo y | #{android_executable} update sdk --filter build-tools-23.0.2 --all --no-ui", "There seem to be some problems with the Android configuration")
122122
execute("echo y | #{android_executable} update sdk --filter extra-android-m2repository --all --no-ui", "There seem to be some problems with the Android configuration")
123123

124+
execute("echo y | $ANDROID_HOME/tools/android update sdk --filter extra-intel-Hardware_Accelerated_Execution_Manager --all --no-ui", "There seem to be some problems with the Android configuration
125+
execute("echo y | $ANDROID_HOME/tools/android update sdk --filter sys-img-x86-android-23 --all --no-ui", "There seem to be some problems with the Android configuration")
126+
execute("echo no | $ANDROID_HOME/tools/android create avd -n Emulator-Api23-Default -t android-23 --abi default/x86 -c 12M -f", "There seem to be some problems with the Android configuration")
127+
124128
puts "The ANDROID_HOME and JAVA_HOME environment variables have been added to your .profile. Restart the terminal to use them."

0 commit comments

Comments
 (0)