[Android-tools-devel] Bug#902666: apktool: build a decoded apk failed: java.lang.NoSuchMethodError

Sophie Brun sophie at freexian.com
Fri Jun 29 11:02:23 BST 2018


Package: apktool
Version: 2.3.3-1
Severity: normal
User: devel at kali.org
Usertags: origin-kali

Hello,

When trying to decode and then to build an apk app, it fails:

$ apktool d -o app2.apk app.apk
$ apktool b app2.apk
I: Using Apktool 2.3.3-dirty
Exception in thread "main" java.lang.NoSuchMethodError: brut.androlib.meta.StringExConstructor.constructScalar(Lorg/yaml/snakeyaml/nodes/ScalarNode;)Ljava/lang/Object;
	at brut.androlib.meta.StringExConstructor.access$100(StringExConstructor.java:25)
	at brut.androlib.meta.StringExConstructor$ConstructStringEx.construct(StringExConstructor.java:32)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:204)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:193)
	at org.yaml.snakeyaml.constructor.SafeConstructor.processDuplicateKeys(SafeConstructor.java:85)
	at org.yaml.snakeyaml.constructor.SafeConstructor.flattenMapping(SafeConstructor.java:70)
	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:190)
	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:149)
	at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:309)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:204)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:193)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:159)
	at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:146)
	at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:524)
	at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:518)
	at brut.androlib.meta.MetaInfo.load(MetaInfo.java:70)
	at brut.androlib.Androlib.readMetaFile(Androlib.java:260)
	at brut.androlib.Androlib.build(Androlib.java:274)
	at brut.androlib.Androlib.build(Androlib.java:267)
	at brut.apktool.Main.cmdBuild(Main.java:238)
	at brut.apktool.Main.main(Main.java:76)

This issue has already been reported upstream:
https://github.com/iBotPeaches/Apktool/issues/1826

The issue has been closed because it seems to *not* happen with official
.jar provided by upstream:
https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.3.3.jar

This has been verified by the person who initially reported this bug to Kali:
https://bugs.kali.org/view.php?id=4815

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.16.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apktool depends on:
ii  aapt                                              1:7.0.0+r33-1
ii  android-framework-res                             1:7.0.0+r33-1
ii  default-jre-headless [java7-runtime-headless]     2:1.10-67
ii  libantlr3-runtime-java                            3.5.2-9
ii  libcommons-cli-java                               1.4-1
ii  libcommons-io-java                                2.6-2
ii  libcommons-lang3-java                             3.7-1
ii  libguava-java                                     19.0-1
ii  libsmali-java                                     2.2.3-1
ii  libstringtemplate-java                            3.2.1-2
ii  libxmlunit-java                                   1.6-1
ii  libxpp3-java                                      1.1.4c-3
ii  libyaml-snake-java                                1.21-1
ii  openjdk-10-jre-headless [java7-runtime-headless]  10.0.1+10-4
ii  openjdk-8-jre-headless [java7-runtime-headless]   8u171-b11-2
ii  openjdk-9-jre-headless [java7-runtime-headless]   9.0.4+12-4

apktool recommends no packages.

apktool suggests no packages.

-- no debconf information



More information about the Android-tools-devel mailing list