From 111cae0f4042243a5253e7b90625e9e09e8d1296 Mon Sep 17 00:00:00 2001 From: Umair Khan Date: Tue, 18 Aug 2015 23:48:53 +0530 Subject: [PATCH 1/2] Download API level 22 SDK by default Signed-off-by: Umair Khan --- src/processing/mode/android/SDKDownloader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/processing/mode/android/SDKDownloader.java b/src/processing/mode/android/SDKDownloader.java index df41ca2cf..0b649d2a2 100644 --- a/src/processing/mode/android/SDKDownloader.java +++ b/src/processing/mode/android/SDKDownloader.java @@ -36,7 +36,7 @@ public class SDKDownloader extends JFrame implements PropertyChangeListener { private static final String URL_REPOSITORY_FOLDER = "http://dl-ssl.google.com/android/repository/"; private static final String URL_USB_DRIVER = "https://dl-ssl.google.com//android/repository/latest_usb_driver_windows.zip"; - private static final String PLATFORM_API_LEVEL = "10"; + private static final String PLATFORM_API_LEVEL = "22"; public static final String PROPERTY_CHANGE_EVENT_TOTAL = "total"; private static final String PROPERTY_CHANGE_EVENT_DOWNLOADED = "downloaded"; From 95fcaf46536b54d5ec6a5641d5a256fe7c7c526c Mon Sep 17 00:00:00 2001 From: Umair Khan Date: Wed, 19 Aug 2015 22:38:57 +0530 Subject: [PATCH 2/2] hardcode minSdkVersion as 15 Signed-off-by: Umair Khan --- src/processing/mode/android/Manifest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/processing/mode/android/Manifest.java b/src/processing/mode/android/Manifest.java index d016a9878..ce6bd3686 100644 --- a/src/processing/mode/android/Manifest.java +++ b/src/processing/mode/android/Manifest.java @@ -93,7 +93,8 @@ public void setPackageName(String packageName) { public void setSdkTarget(String version) { XML usesSdk = xml.getChild("uses-sdk"); - usesSdk.setString("android:minSdkVersion", version); + usesSdk.setString("android:minSdkVersion", "15"); + usesSdk.setString("android:targetSdkVersion", version); save(); }