Apktool Issues with Raspberry Pi2 - Raspberry Pi Forums


hello,
i'm having trouble using apktool raspberry pi2 have raspbian os.
problem when try build apk, following :

code: select all

aptkool b <path folder>
error :

code: select all

i: using apktool 2.2.0 i: checking whether sources has changed... i: checking whether resources has changed... i: building apk file... exception in thread "main" w: /tmp/brut_util_jar_2521670228527234892.tmp: 1: /tmp/brut_util_jar_2521670228527234892.tmp: syntax error: word unexpected (expecting ")") brut.androlib.androlibexception: brut.common.brutexception: not exec (exit code = 2): [/tmp/brut_util_jar_2521670228527234892.tmp, p, -f, /home/pi/desktop/superlamptorch/dist/superlamptorch.apk, -0, arsc, -0, sp, -0, ya, -0, arsc, -a, /home/pi/desktop/superlamptorch/assets, /home/pi/desktop/superlamptorch/build/apk] 	at brut.androlib.res.androlibresources.aaptpackage(androlibresources.java:439) 	at brut.androlib.androlib.buildapk(androlib.java:670) 	at brut.androlib.androlib.build(androlib.java:310) 	at brut.androlib.androlib.build(androlib.java:263) 	at brut.apktool.main.cmdbuild(main.java:224) 	at brut.apktool.main.main(main.java:84) caused by: brut.common.brutexception: not exec (exit code = 2): [/tmp/brut_util_jar_2521670228527234892.tmp, p, -f, /home/pi/desktop/superlamptorch/dist/superlamptorch.apk, -0, arsc, -0, sp, -0, ya, -0, arsc, -a, /home/pi/desktop/superlamptorch/assets, /home/pi/desktop/superlamptorch/build/apk] 	at brut.util.os.exec(os.java:95) 	at brut.androlib.res.androlibresources.aaptpackage(androlibresources.java:433) 	... 5 more 
searched bit , found should install ia32-libs, of course can't find doing :

code: select all

apt-get install ia32-libs
kept searching , found have :

code: select all

dpkg --add-architecture i386 
# enable multi-arch

code: select all

apt-get update

code: select all

apt-get install libc6:i386
# install base 32bit libraries

did can't install libc6:i386 , terminal told me should replace package those:

code: select all

 tzdata libdb1-compat libc-bin initscripts.
installed them , try again build apk, still can't , i'm bit short on ideas , research if guys give me little it'll awesome



raspberrypi



Comments