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() {
168
168
return "" ;
169
169
}
170
170
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" ;
175
176
if (!new File (androidJarPath ).exists ()) {
176
177
// 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" ;
180
179
if (!new File (androidJarPath ).exists ()) {
181
180
Messages .log ("Android SDK path couldn't be loaded." );
182
181
return "" ;
You can’t perform that action at this time.
0 commit comments