Skip to content

Commit b3439d0

Browse files
committed
Add android.jar to the searchable jars list for error checking stuffs
1 parent 885f6d8 commit b3439d0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/processing/mode/android/AndroidMode.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,20 @@ public void checkSDK(Editor parent) {
157157
public AndroidSDK getSDK() {
158158
return sdk;
159159
}
160+
161+
162+
@Override
163+
public String getSearchPath() {
164+
StringBuilder tehPath = new StringBuilder(super.getSearchPath());
165+
tehPath.append(File.pathSeparator);
166+
167+
String androidJarPath = sdk.getSdkFolder().getAbsolutePath() + "/platforms/"
168+
+ "android-" + AndroidBuild.sdkVersion + "/android.jar";
169+
System.out.println("androidJarPath = " + androidJarPath);
170+
tehPath.append(androidJarPath);
171+
172+
return tehPath.toString();
173+
}
160174

161175

162176
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

0 commit comments

Comments
 (0)