File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
mode/src/processing/mode/android Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -192,13 +192,14 @@ protected Object doInBackground() throws Exception {
192
192
193
193
// Normalize built-tools and platform folders to android-<API LEVEL>
194
194
String actualName = platformsFolder .listFiles ()[0 ].getName ();
195
- renameFolder (platformsFolder , "android-" + TARGET_SDK , actualName );
195
+ renameFolder (platformsFolder , "android-" + downloadUrls . platformVersion , actualName );
196
196
actualName = buildToolsFolder .listFiles ()[0 ].getName ();
197
197
renameFolder (buildToolsFolder , downloadUrls .buildToolsVersion , actualName );
198
198
199
199
// Done, let's set the environment and load the new SDK!
200
200
Platform .setenv ("ANDROID_SDK" , sdkFolder .getAbsolutePath ());
201
- Preferences .set ("android.sdk.path" , sdkFolder .getAbsolutePath ());
201
+ Preferences .set ("android.sdk.path" , sdkFolder .getAbsolutePath ());
202
+ Preferences .set ("android.sdk.target" ,downloadUrls .platformVersion );
202
203
sdk = AndroidSDK .load (false , null );
203
204
} catch (IOException e ) {
204
205
// TODO Handle exceptions here somehow (ie show error message)
You can’t perform that action at this time.
0 commit comments