Apktool: Apktool building not working on 2.4.0 with Java 8 32bit

Information

I tried decompiling and building multiple apks, on multiple machines (it works on some, on some it doesn’t, all windows 10). It doesn’t work (see stacktrace) with 2.4.0 but it works with 2.3.4…)

  1. Apktool Version (2.4.0) -
  2. Operating System (Windows 10) -
  3. APK From? (Selfmade) -

Stacktrace/Logcat

I: Using Apktool 2.4.0
I: Smaling smali folder into classes.dex...
I: Building resources...
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = -1073741515): [C:\Users\user\AppData\Local\Temp\brut_util_Jar_1931288203282772305.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 29, --version-code, 1, --version-name, 0.1, --no-version-vectors, -F, C:\Users\user\AppData\Local\Temp\APKTOOL2912424743621301431.tmp, -0, arsc, -0, png, -0, arsc, -I, C:\Users\user\AppData\Local\apktool\framework\1.apk, -S, C:\Users\user\Desktop\test\test5\res, -M, C:\Users\user\Desktop\test\test5\AndroidManifest.xml]

Steps to Reproduce

  1. apktool d "input.apk" -o "outputFolder"
  2. apktool b "outputFolder" -f -o "output.apk"

Frameworks

default framework

APK

https://anonymousfiles.io/f9PSu1ez/

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything? Yes
  2. If you are trying to install a modified apk, did you resign it? n.a.
  3. Are you using the latest apktool version? Yes

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 18 (7 by maintainers)

Commits related to this issue

Most upvoted comments

@iBotPeaches Hey, I haven’t got the time to look closely and perform changes to prevent libwinpthread-1, but found a temporary solution. The solution is to use the dll from mingw in a PATH env, and use apktool. It did allow me to compile the apk.

I am attaching the dll from mingw. libwinpthread-1.zip

Installing the 64 bit version of java allowed me to fix the problem.

Thanks to Furniel, we have fixed 32bit binaries. I’ll have a test release up later today to confirm for this ticket, then I’ll merge them into master.

my solve 2105