File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
src/processing/mode/android Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -168,15 +168,14 @@ public String getSearchPath() {
168168 return "" ;
169169 }
170170
171- String androidJarPath = sdk .getSdkFolder ().getAbsolutePath () +
172- File .separator + "platforms" + File .separator + "android-" +
173- AndroidBuild .sdkVersion + File .separator + "android.jar" ;
174-
171+ String path = sdk .getSdkFolder ().getAbsolutePath () + File .separator +
172+ "platforms" + File .separator + "android-" ;
173+ String ver = AndroidBuild .sdkVersion ;
174+ String name = AndroidBuild .sdkName ;
175+ String androidJarPath = path + ver + File .separator + "android.jar" ;
175176 if (!new File (androidJarPath ).exists ()) {
176177 // Try again using SDK name, I have seen the SDK stored as platforms/android-x.y.z
177- androidJarPath = sdk .getSdkFolder ().getAbsolutePath () +
178- File .separator + "platforms" + File .separator + "android-" +
179- AndroidBuild .sdkName + File .separator + "android.jar" ;
178+ androidJarPath = path + name + File .separator + "android.jar" ;
180179 if (!new File (androidJarPath ).exists ()) {
181180 Messages .log ("Android SDK path couldn't be loaded." );
182181 return "" ;
You can’t perform that action at this time.
0 commit comments