Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command

错误如下:

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_7329934395291017709.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --version-code, 1, --version-name, 1.789.0.1, -F, /tmp/APKTOOL4412835032657668593.tmp, -0, arsc, -I, /home/debm/apktool/framework/1.apk, -S, /home/debm/share/1003789BY/res, -M, /home/debm/share/1003789BY/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
at brut.androlib.Androlib.buildResources(Androlib.java:396)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_7329934395291017709.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --version-code, 1, --version-name, 1.789.0.1, -F, /tmp/APKTOOL4412835032657668593.tmp, -0, arsc, -I, /home/debm/apktool/framework/1.apk, -S, /home/debm/share/1003789BY/res, -M, /home/debm/share/1003789BY/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:444)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_7329934395291017709.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --version-code, 1, --version-name, 1.789.0.1, -F, /tmp/APKTOOL4412835032657668593.tmp, -0, arsc, -I, /home/debm/apktool/framework/1.apk, -S, /home/debm/share/1003789BY/res, -M, /home/debm/share/1003789BY/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:413)
... 6 more
Caused by: java.io.IOException: Cannot run program "/tmp/brut_util_Jar_7329934395291017709.tmp": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
at java.lang.Runtime.exec(Runtime.java:617)
at java.lang.Runtime.exec(Runtime.java:485)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:186)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
... 10 more

处理问题在 centos 上,可运行如下两行代码

yum install libstdc++.so.6
yum install zlib.i686

时间: 2024-10-07 10:04:12

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command的相关文章

Exception in thread &quot;main&quot; brut.androlib.AndrolibException: Could not decode arsc file at brut.androlib.res.decoder.ARSCDecoder.decode

使用ApkIDE反编译出现如下错误: Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56) 解决方法: 1.从 apktool 官网:https://ibotpeaches.github.io/Apktool/下载最新版本的apkt

exception in thread &quot;main&quot; brut.androlib.AndrdolibException: Counld not decode arse file

最近遇到一个很恶心的问题: 1  错误日志: Exception in thread "main" brut.androlib.AndrolibException: **Could not decode arsc file** at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56) at brut.androlib.res.AndrolibResources.getResPackagesFromApk(A

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030200

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030200 反编译时遇到标题中的异常,根据描述,原因是找不到资源文件,最有可能的原因是apk中使用了系统资源. 解决办法如下: 从手机中导出framework-res.apk文件,该文件在/system/framework下面,把这个文件拷到跟apkTool同一个目录下,执行以下语句把资源文件加进来: apktool?

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030200(转)

反编译时遇到标题中的异常,根据描述,原因是找不到资源文件,最有可能的原因是apk中使用了系统资源. 解决办法如下: 从手机中导出framework-res.apk文件,该文件在/system/framework下面,把这个文件拷到跟apkTool同一个目录下,执行以下语句把资源文件加进来: [java] view plaincopy apktool if framework-res.apk 此时再执行 apktool  d  xxx.apk即可. Exception in thread "mai

Hbase delete遇到的常见异常: Exception in thread &quot;main&quot; java.lang.UnsupportedOperationException

hbase 执行批量删除时出现错误: Exception in thread "main" java.lang.UnsupportedOperationException at java.util.AbstractList.remove(AbstractList.java:161) at org.apache.hadoop.hbase.client.HTable.delete(HTable.java:852) 这种异常其实很常见,remove操作不支持,为什么会出现不支持的情况呢?检查

Exception in thread &quot;main&quot; org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User

Exception in thread "main" org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User user where user.name=?0 and user.pass=?1] at org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:180

Exception in thread &quot;main&quot; java.lang.NoSuchMethodError: org.testng.TestNG.configure(Lorg/testng/CommandLineArgs;)V

TestNG运行时报以下错误: Exception in thread "main" java.lang.NoSuchMethodError: org.testng.TestNG.configure(Lorg/testng/CommandLineArgs;)V at org.testng.remote.AbstractRemoteTestNG.configure(AbstractRemoteTestNG.java:77) at org.testng.remote.RemoteTestN

Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

MyEclipse运行的时候报错,菜鸟不理解是什么意思,最后找了一些资料才知道是因为缺少commons-logging.jar包 Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.commons.httpclient.HttpClient.<clinit>(HttpClient.java:66) at c

Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: Demo (wrong name: com/zhangyun/Demo)解决办法

介绍一个Java初学者可能会遇到的问题 首先,创建一个类,如下: 文件名:Demo.java package com.zhangyun; public class Demo { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("Hello World!"); } } 然后我找到对应在磁盘的位置,如下: E