question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Apktool building not working on 2.4.0 with Java 8 32bit

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
parindcommented, Nov 6, 2019

@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

2reactions
Mimi8298commented, Jul 30, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apktool.jar common errors and solutions - XDA Forums
1 it's not going to work so nicely even if it doesn't bomb on an error. Code: Error occurred while disassembling class Landroid.util.proto....
Read more >
Malformed String Number Version 2.4.0 when msfvenom -x
I have struggled and got the solution. It looks like the problem was with the apktool and also the java environment variables (but...
Read more >
Apktool - How to Install - GitHub Pages
Install Instructions. Quick Check. Is at least Java 1.8 installed? Does executing java -version on command line / command prompt return 1.8 or...
Read more >
Apktool.jar common errors and solutions - katago - 博客园
Apktool : https://github.com/iBotPeaches/Apktool/issues ... This was an issue with Java 8 32-bit on Apktool 2.4.0. Install 64-bit of Java or ...
Read more >
Which Java download should I choose for my 64-bit Windows ...
Note that because some web content may not work properly in a 64-bit browser, we recommend using the default 32-bit browser and downloading...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found