[Android Software Development] ohlin5:
Just wondering if anyone could help me on this error I'm experiencing...I purchased Swiftkey3 quite a while back, and overall I really like the keyboard, but I just can't stand where the .com button is placed right next to the spacebar in the URL keyboard. I set out last night with a goal of simply removing the .com from that keyboard and placing it over on the "123" keyboard.

What I've done:

I've placed the aapt.ext, apktool.bat, and apktool.jar files within C:\Android\ApkTool & added "C:\Android\ApkTool" to the end of the "Path" System Variable

I've decompiled the .apk, and edited the appropriate .xml files that I wanted to change (get rid of .com button, widen spacebar, replace .com on other keyboard).

However, when I go to recompile (by typing "apktool b swiftkey3") I get the following outcome:

C:\Android\ApkTool\swiftkey3\res\layout\xinstaller_contents.xml:12: error: No re

source identifier found for attribute 'active' in package 'com.touchtype'

C:\Android\ApkTool\swiftkey3\res\layout\xinstaller_contents.xml:12: error: No re

source identifier found for attribute 'completed' in package 'com.touchtype'

C:\Android\ApkTool\swiftkey3\res\layout\xinstaller_contents.xml:13: error: No re

source identifier found for attribute 'title' in package 'com.touchtype'

C:\Android\ApkTool\swiftkey3\res\layout\xinstaller_contents.xml:13: error: No re

source identifier found for attribute 'summary' in package 'com.touchtype'

C:\Android\ApkTool\swiftkey3\res\layout\xinstaller_contents.xml:13: error: No re

source identifier found for attribute 'position' in package 'com.touchtype'

C:\Android\ApkTool\swiftkey3\res\layout\xinstaller_contents.xml:13: error: No re

source identifier found for attribute 'active' in package 'com.touchtype'

C:\Android\ApkTool\swiftkey3\res\layout\xinstaller_contents.xml:13: error: No re

source identifier found for attribute 'completed' in package 'com.touchtype'

C:\Android\ApkTool\swiftkey3\res\layout\xinstaller_contents.xml:16: error: No re

source identifier found for attribute 'title' in package 'com.touchtype'

C:\Android\ApkTool\swiftkey3\res\layout\xinstaller_contents.xml:16: error: No re

source identifier found for attribute 'summary' in package 'com.touchtype'

C:\Android\ApkTool\swiftkey3\res\layout\xinstaller_contents.xml:16: error: No re

source identifier found for attribute 'position' in package 'com.touchtype'

C:\Android\ApkTool\swiftkey3\res\layout\xinstaller_contents.xml:16: error: No re

source identifier found for attribute 'active' in package 'com.touchtype'

C:\Android\ApkTool\swiftkey3\res\layout\xinstaller_contents.xml:16: error: No re

source identifier found for attribute 'completed' in package 'com.touchtype'

C:\Android\ApkTool\swiftkey3\res\layout\xinstaller_contents.xml:17: error: No re

source identifier found for attribute 'title' in package 'com.touchtype'

C:\Android\ApkTool\swiftkey3\res\layout\xinstaller_contents.xml:17: error: No re

source identifier found for attribute 'summary' in package 'com.touchtype'

C:\Android\ApkTool\swiftkey3\res\layout\xinstaller_contents.xml:17: error: No re

source identifier found for attribute 'position' in package 'com.touchtype'

C:\Android\ApkTool\swiftkey3\res\layout\xinstaller_contents.xml:17: error: No re

source identifier found for attribute 'active' in package 'com.touchtype'

C:\Android\ApkTool\swiftkey3\res\layout\xinstaller_contents.xml:17: error: No re

source identifier found for attribute 'completed' in package 'com.touchtype'

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

(These resource identifier errors continue for many more lines, cut them out here for length because they're basically the same as what's above)

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

C:\Android\ApkTool\swiftkey3\res\xml\prefs_personalizers.xml:8: error: No resour

ce identifier found for attribute 'likeConsentText' in package 'com.touchtype'

brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.Br

utException: could not exec command: [aapt, p, --min-sdk-version, 7, --target-sd

k-version, 15, -F, C:\Users\Dave\AppData\Local\Temp\APKTOOL5319502367465332253.t

mp, -I, C:\Users\Dave\apktool\framework\1.apk, -S, C:\Android\ApkTool\swiftkey3\

res, -M, C:\Android\ApkTool\swiftkey3\AndroidManifest.xml]

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:357)

at brut.androlib.Androlib.buildResources(Androlib.java:282)

at brut.androlib.Androlib.build(Androlib.java:205)

at brut.androlib.Androlib.build(Androlib.java:176)

at brut.apktool.Main.cmdBuild(Main.java:218)

at brut.apktool.Main.main(Main.java:74)

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not

exec command: [aapt, p, --min-sdk-version, 7, --target-sdk-version, 15, -F, C:\

Users\Dave\AppData\Local\Temp\APKTOOL5319502367465332253.tmp, -I, C:\Users\Dave\

apktool\framework\1.apk, -S, C:\Android\ApkTool\swiftkey3\res, -M, C:\Android\Ap

kTool\swiftkey3\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav

a:349)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:335)

... 5 more

Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd

k-version, 7, --target-sdk-version, 15, -F, C:\Users\Dave\AppData\Local\Temp\APK

TOOL5319502367465332253.tmp, -I, C:\Users\Dave\apktool\framework\1.apk, -S, C:\A

ndroid\ApkTool\swiftkey3\res, -M, C:\Android\ApkTool\swiftkey3\AndroidManifest.x

ml]

at brut.util.OS.exec(OS.java:89)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav

a:347)

... 6 more

C:\Android\ApkTool>

The AndroidManifest.xml has an entry for package="com.touchtype.swiftkey", and after messing around with this for hours last night I found that if I change that entry to say package="com.touchtype" instead the .apk will compile and install after I resign it.

However, the only issues now is that somehow that process seems to break the swiftkey personalization....all of them fail almost instantly everytime I try. I know this is a relatively minor deal, but it would be nice to know whats causing the issue and if there is anything I can do about it. Thanks for any information you can provide!