VE5514 发表于 2020-4-10 20:02

apktool回编译失败

在windows上正常回编译了
到 linux上就回编译不回来了是什么问题?

https://s1.ax1x.com/2020/04/10/GTIxWn.png

老哥们帮忙看看

I: Using Apktool 2.3.1
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
W: /root/app/common/./app/res/values-v24/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.OptionsPanel'.
W:
W: /root/app/common/./app/res/values-v24/styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.LockScreen'.
W:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1):
      at brut.androlib.Androlib.buildResourcesFull(Androlib.java:492)
      at brut.androlib.Androlib.buildResources(Androlib.java:426)
      at brut.androlib.Androlib.build(Androlib.java:305)
      at brut.androlib.Androlib.build(Androlib.java:270)
      at brut.apktool.Main.cmdBuild(Main.java:227)
      at brut.apktool.Main.main(Main.java:75)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1):
      at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:456)
      at brut.androlib.Androlib.buildResourcesFull(Androlib.java:478)
      ... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1):
      at brut.util.OS.exec(OS.java:95)
      at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:450)
      ... 6 more

战言灬永不败 发表于 2020-4-10 20:02

出错地方是:res/values-v24/styles.xml 第3和4行,直接删除values-v24文件夹或者删除styles.xml 第3行的@android:style/Animation.OptionsPanel 和第4行@android:style/Animation.LockScreen。

wr20060926 发表于 2020-4-10 20:26

已经举报,重复发帖

罗萨 发表于 2020-4-10 20:50

进入xml把那两个name属性删掉就可以了

VE5514 发表于 2020-4-10 20:54

wr20060926 发表于 2020-4-10 20:26
已经举报,重复发帖

抱歉抱歉{:301_971:}
页: [1]
查看完整版本: apktool回编译失败