Skip to content

Commit 5f48a79

Browse files
committed
Fix zipalign path
1 parent 522346f commit 5f48a79

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/processing/mode/android/AndroidBuild.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,10 @@ private File signPackage(File projectFolder, String keyStorePassword) throws Exc
350350
} */
351351

352352
private File zipalignPackage(File signedPackage, File projectFolder) throws IOException, InterruptedException {
353-
String zipalignPath = sdk.getSdkFolder().getAbsolutePath() + "/tools/zipalign";
353+
354+
File buildToolsFolder = new File(sdk.getSdkFolder(), "build-tools").listFiles()[0];
355+
String zipalignPath = buildToolsFolder.getAbsolutePath() + "/zipalign";
356+
354357
File alignedPackage = new File(projectFolder, "bin/" + sketch.getName() + "-release-signed-aligned.apk");
355358

356359
String[] args = {

0 commit comments

Comments
 (0)