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.

brut.common.BrutException: could not exec (exit code = -1073741515)

See original GitHub issue

OS: Windows APK from: Dynamically generated apk built with phonegap on my computer

Stacktrace:

C:\Users\LJ Germain>apktool b "C:\Users\LJ Germain\RainbowFidgetCloth" -o "C:\Users\LJ Germain\Downloads\RainbowFidgetCloth .apk"
I: Using Apktool 2.4.0
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
S: WARNING: Could not write to (C:\Users\LJ Germain\AppData\Local\apktool\framework), using C:\Users\LJGERM~1\AppData\Local\Temp\ instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the defa  ult storage directory is unavailable
brut.androlib.AndrolibException: brut.common.BrutException: 
could not exec (exit code = -1073741515): [C:\Users\LJGERM~1  \AppData\Local\Temp\brut_util_Jar_6031812586454975601.tmp, p,
 --forced-package-id, 127, --min-sdk-version, 26, --version  
-code, 10000, --version-name, 1.0.0, --no-version-vectors, -F, C:\Users\LJGERM~1\AppData\Local\Temp\APKTOOL1831151462112  
098054.tmp, -0, arsc, -0, png, -0, arsc, -I, 
C:\Users\LJGERM~1\AppData\Local\Temp\1.apk, -S, C:\Users\LJ Germain\Rainbow  
FidgetCloth\res, -M, C:\Users\LJ Germain\RainbowFidgetCloth\AndroidManifest.xml]


Steps to reproduce I’m not entirely sure.

Questions to ask before Submission Are you using the latest version of apktool? Yes. Have you tried apktool d, apktool b without changing anything? Yes. If you are trying to install a modified apk, did you resign it? This is my own apk, not modified.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
rygo-msftcommented, Apr 12, 2019

I have also seen a few reports of this since updating to 2.4.0.

There seems to be an issue with the 32-bit Windows aapt binary failing to load dependencies. -1073741515 is actually the HRESULT 0xC0000135‬ STATUS_DLL_NOT_FOUND. This can impact both 32 and 64 bit Windows as it appears that apktool is using the jvm bitness rather than the actual host OS bitness to determine which aapt version to use.

After running procmon, it appears that the missing assembly is libwinpthread-1.dll

3reactions
0x00xxcommented, Sep 4, 2019

I have only Java for 64 bit systems installed, get the same error though. Any help?

Read more comments on GitHub >

github_iconTop Results From Across the Web

could not exec (exit code = -1073741515) when run with 32bit ...
AppPackagerException: Failed to load app resource table. ... brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = -1073741515): ...
Read more >
How Fix brut.androlib.AndrolibException: brut.common ...
How Fix brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = -1073741515) ... When you reassemble the ...
Read more >
Passolo APK ERROR - There was a problem while generating ...
AndrolibException: brut.common.BrutException: could not exec (exit code = -1073741515). Article Number: 000017154 | Last Updated: 10/7/2021 ...
Read more >
[Discontinued] [Windows] APK Easy Tool v1.60 (2022-06-23)
I: Building resources... brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = -1073741515): ...
Read more >
Apktool b 报错: exit code = -1073741515 - SegmentFault 思否
I: Building resources... brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = -1073741515):.
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