为什么在使用 apktool 构建 apk 文件时出现 brut.androlib.AndrolibException 错误?

问题描述

我从 Google PlayStore 下载了一些应用程序并通过以下方式禁用了它:

$ apktool d my-app

I: Using Apktool 2.5.0 on my-app.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\kreis\AppData\Local\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling classes3.dex...
I: copying assets and libs...
I: copying unkNown files...
I: copying original files...
I: copying meta-inf/services directory

现在没有任何修改我想将其编译为apk文件,每次我都会出现相同的错误

$ apktool b jodel -o out.apk
I: Using Apktool 2.5.0
...
...
W: brut.androlib.AndrolibException: brut.common.BrutException: Could not exec (exit code = 1): [C:\Users\kreis\AppData\Local\Temp\brut_util_Jar_71166972874490660111854333778234451644.tmp,p,--forced-package-id,127,--version-code,0000100,--version-name,12.11.0,--no-version-vectors,-F,C:\Users\kreis\AppData\Local\Temp\APKTOOLsomecode3.tmp,-e,C:\Users\kreis\AppData\Local\Temp\APKTOOLsomecode.tmp,-0,arsc,-I,C:\Users\kreis\AppData\Local\apktool\framework\1.apk,-S,C:\Users\kreis\Downloads\my-app\res,-M,C:\Users\kreis\Downloads\my-app\AndroidManifest.xml]

我尝试了以下操作:

  1. 其他版本:2.3.0、2.2.0 等
  2. 添加 -r 和 -s 选项
  3. apktool 的任何其他替代品:它仍然不起作用

感谢您的帮助!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)