Apktool building not working on 2.4.0 with Java 8 32bit
See original GitHub issueInformation
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…)
- Apktool Version (
2.4.0
) - - Operating System (Windows 10) -
- 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
apktool d "input.apk" -o "outputFolder"
apktool b "outputFolder" -f -o "output.apk"
Frameworks
default framework
APK
https://anonymousfiles.io/f9PSu1ez/
Questions to ask before submission
- Have you tried
apktool d
,apktool b
without changing anything? Yes - If you are trying to install a modified apk, did you resign it? n.a.
- Are you using the latest apktool version? Yes
Issue Analytics
- State:
- Created 4 years ago
- Comments:18 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.