@@ -134,26 +134,18 @@ def install_environment_variable(name, value)
134
134
execute ( "echo y | #{ android_executable } \" tools\" " , error_msg )
135
135
execute ( "echo y | #{ android_executable } \" build-tools;25.0.2\" " , error_msg )
136
136
execute ( "echo y | #{ android_executable } \" platforms;android-25\" " , error_msg )
137
- execute ( "echo y | #{ android_executable } \" platforms;android-24\" " , error_msg )
138
- execute ( "echo y | #{ android_executable } \" platforms;android-23\" " , error_msg )
139
- execute ( "echo y | #{ android_executable } \" platforms;android-22\" " , error_msg )
140
- execute ( "echo y | #{ android_executable } \" platforms;android-21\" " , error_msg )
141
- execute ( "echo y | #{ android_executable } \" platforms;android-19\" " , error_msg )
142
- execute ( "echo y | #{ android_executable } \" platforms;android-18\" " , error_msg )
143
- execute ( "echo y | #{ android_executable } \" platforms;android-17\" " , error_msg )
137
+ execute ( "echo y | #{ android_executable } \" extras;android;m2repository\" " , error_msg )
138
+ execute ( "echo y | #{ android_executable } \" extras;google;m2repository\" " , error_msg )
144
139
145
140
puts "Do you want to install Android emulator? (y/n)"
146
141
if gets . chomp . downcase == "y"
147
142
puts "Do you want to install HAXM (Hardware accelerated Android emulator)? (y/n)"
148
143
if gets . chomp . downcase == "y"
149
144
execute ( "echo y | #{ android_executable } \" extras;intel;Hardware_Accelerated_Execution_Manager\" " , error_msg )
150
-
151
145
haxm_silent_installer = File . join ( ENV [ "ANDROID_HOME" ] , "extras" , "intel" , "Hardware_Accelerated_Execution_Manager" , "silent_install.sh" )
152
146
execute ( "sudo #{ haxm_silent_installer } " , "There seem to be some problems with the Android configuration" )
153
- else
154
147
end
155
- execute ( "echo y | #{ android_executable } \" system-images;android-25;google_apis;x86\" " , error_msg )
156
- execute ( "echo y | #{ android_executable } \" system-images;android-24;default;x86\" " , error_msg )
148
+ execute ( "echo y | #{ android_executable } \" system-images;android-25;google_apis;x86\" " , error_msg )
157
149
end
158
150
159
151
puts "The ANDROID_HOME and JAVA_HOME environment variables have been added to your .bash_profile/.zprofile"
0 commit comments