在mac上使用apktool重新编译apk时出错

时间:2018-01-12 16:37:22

标签: android macos apktool

我刚从windows移动到mac las周,我尝试使用apktool但是当我尝试重新编译文件时,我一直收到这个错误



Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec: [aapt, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 21, --version-code, 1, --version-name, 1.0, --no-version-vectors, -F, /var/folders/rq/95s03v09065br4w8dyg6n__00000gn/T/APKTOOL13452202057815908857.tmp, -0, arsc, -0, arsc, -I, /Users/macbookpro/Library/apktool/framework/1.apk, -S, /Users/macbookpro/juusttest/res, -M, /Users/macbookpro/juusttest/AndroidManifest.xml]
	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:477)
	at brut.androlib.Androlib.buildResources(Androlib.java:411)
	at brut.androlib.Androlib.build(Androlib.java:310)
	at brut.androlib.Androlib.build(Androlib.java:263)
	at brut.apktool.Main.cmdBuild(Main.java:227)
	at brut.apktool.Main.main(Main.java:84)




这里有人遇到过同样的问题吗? PS:java版本" 9.0.1" apktool版本:2.2.2

0 个答案:

没有答案