yashsingh1/xdaforums huggingface dataset:
[Android Software Development] CosmicDan:
"No such file or directory" means there is no such file or directory. Make sure the path is correct or that you've added the location of aapt to the PATH in bash. Are you using GnuWin32 or Cygwin? I'm not sure if you can use the linux aapt binary with Cygwin.

Either way, if it was an architecture or binary issue, it would show "could not execute aapt" instead of "no such file or directory".

If the errors shows "/aapt" I think it's looking for it in root, change it to ./aapt for current working folder. But best practice is to put it somewhere in your PATH - for GnuWin32 that'd be system32 or for cygqwin that'd be cygwin/usr/bin/ (I think).
[Android Software Development] prabhjots:
Excuse me if I'm asking stupid questions, I'm a newbie to Android Dev.

Am I right in saying that the tool doesn't currently work with Android 4.2 APKs? I tried decompiling, editing (trying to add a new language dictionary) and recompiling the 4.2 Android Keyboard. But it wouldn't compile.

The error

I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
D:\apktool\LatinImeGoogle_signed.apk\res\layout\more_suggestions.xml:4: error: No resource identifier found for attribute 'keyLetterSize' in package 'com.android.inputmethod.latin'
D:\apktool\LatinImeGoogle_signed.apk\res\layout\more_suggestions.xml:4: error: No resource identifier found for attribute 'keyLabelSize' in package 'com.android.inputmethod.latin'
D:\apktool\LatinImeGoogle_signed.apk\res\layout\more_suggestions.xml:4: error: No resource identifier found for attribute 'keyHintLetterRatio' in package 'com.android.inputmethod.latin'

and so on it goes for the entire list of resources.

Is there something I'm doing wrong?

Next, I tried changing the package name in AndroidManifest.xml from:

<manifest android:versionCode="1700" android:versionName="JellyBeanMR1-448013" coreApp="true" package="com.google.android.inputmethod.latin"
xmlns:android="http://schemas.android.com/apk/res/android">

to

<manifest android:versionCode="1700" android:versionName="JellyBeanMR1-448013" coreApp="true" package="com.android.inputmethod.latin"
xmlns:android="http://schemas.android.com/apk/res/android">

and then the compile works correctly.

however, the size of the new apk now becomes around 8.7 MB instead of the original 12 MB. This, despite adding a 400 KB .dict file.

Am I doing something wrong?
[Android Software Development] pakjebakmeel:
Ok, so when trying to install the framework-res.apk from the factory image v4.2 (TAKJU/JOP40C) using the version from post #828 in this thread:

java -Xmx256M -jar ~/Downloads/apktool-cli-1.5.1-SNAPSHOT.jar if ~/Downloads/framework-res.apk

Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01080291 drawable/ic_ab_back_holo_dark, config=-xhdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:197)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:166)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:131)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:106)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:459)
at brut.androlib.Androlib.installFramework(Androlib.java:491)
at brut.apktool.Main.cmdInstallFramework(Main.java:219)
at brut.apktool.Main.main(Main.java:74)

Or:

java -Xmx256M -jar ~/Downloads/apktool-cli-1.5.1-SNAPSHOT.jar d ~/Downloads/framework-res.apk ~/Downloads/framework-res

I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01080291 drawable/ic_ab_back_holo_dark, config=-xhdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:197)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:166)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:131)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:106)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:390)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:56)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:48)
at brut.androlib.Androlib.getResTable(Androlib.java:54)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:170)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:135)
at brut.apktool.Main.main(Main.java:70)
[Android Software Development] CosmicDan:
Dude if you saw iBot's last post, 1.5.1 has not been updated for 4.2 yet. It only recently hit AOSP so you'll have to wait.

Sent from Xperia Play (R800a) on Turbo UI with Tapatalk
[Android Software Development] pakjebakmeel:
Thanks, well it said:

and some time after he said:

So I thought it supported the latest 4.2 with that API level 17. Probably my bad but it sounded like it was supposed to work now.
[Android Software Development] paulobrien:
Good afternoon folks.

I've made a super-quick change to fix the issue with duplicate resources in 4.2, which is actually caused by the additional support for RTL languages.

- You can view my changes in this commit - https://github.com/paulobrien/Apktool/commit/6e4c8ffb23e91d7924273d882196961633988718

- I have submitted a pull request here - https://github.com/iBotPeaches/Apktool/pull/63

- You can download and build yourself in the interim from my github - https://github.com/paulobrien/Apktool

P
[Android Software Development] CosmicDan:
Nice work Paul.

Yes the new apktool adds support for SDK version 17, but in case you didn't notice it is marked as preview release.

Sent from Xperia Play (R800a) on Turbo UI with Tapatalk
[Android Software Development] iBotPeaches:
Thanks for the help.

Upon first glance (now that the dev docs have updated). We are dealing with just a couple of new resources/configs. I'll probably check aapt itself though, as sometimes Android doesn't keep their docs up to date :/

Density

public static final int DENSITY_DPI_UNDEFINED - 0 (0x00000000)

Layout

public static final int SCREENLAYOUT_LAYOUTDIR_LTR - 64 (0x00000040)

public static final int SCREENLAYOUT_LAYOUTDIR_MASK - 192 (0x000000c0)

public static final int SCREENLAYOUT_LAYOUTDIR_RTL - 128 (0x00000080)

public static final int SCREENLAYOUT_LAYOUTDIR_SHIFT - 6 (0x00000006)

public static final int SCREENLAYOUT_LAYOUTDIR_UNDEFINED - 0 (0x00000000)

With new configs of...

public int densityDpi

EDIT: Also 2 configurations were deprecated. Don't know if it really matters if we remove them in Apktool, but I'll figure it out later.

public static final int ORIENTATION_SQUARE

public static final int TOUCHSCREEN_STYLUS

I will take a peek into aapt to see how the order of the new localizations should be done and get an update out. I'll use Paul's pull as a base, and add the remaining resource flags in. Then we will have a PR2, then I'll try and get Proguard working. Then public release of v1.5.1.

I also got my hands on a OPPO Finder ROM and that ROM has its own configs that require its own customized aapt for building. I'll see about getting source DIFFs from them (OPPO Chinese Company) to expand Apktool to support that strange company that doesn't abide by Android standards.

JesusFreke is also re-doing dexlib for smali, but I'll wait until he pushes a new version and we will quickly release a new Apktool whenever that happens.

Please no "Apktool doesn't work w/ 4.2" until I push Apktool v1.5.1 PR 2.
[Android Software Development] ilie321:
the link for the app thanks

http://xdaforums.com/attachment.php?attachmentid=1480537&d=1352872085
[Android Software Development] paulobrien:
Awesome, yeah, I couldn't find the relevant info in the dev docs so had to reverse engineer from the problem to get a quick fix.

OPPO have their own aapt? WTF? Not that it surprises me....! :)

P
[Android Software Development] iBotPeaches:
Its because % has special meaning. They could of just escaped it or I think %% would of worked instead of finding a char that is treated literally and looks like percent sign.
[Android Software Development] iBotPeaches:
Need some help finding as many 4.2 troublesome APKs as possible. Want to knock out all the bugs this weekend and get v1.5.1 published. Though busy with school & work so haven't had the time to like download full ROMs and deodex them for 1 apk.

Any help will be greatly appreciated. Just pushed a commit about the new config flags, but haven't tested it yet as I have no 4.2 stuff lol.
[Android Software Development] PacerguyDon:
Built the apktool that Paul has on his github. So far its working well. I've just started tonight but framework-res and SystemUI have both decompiled and recompiled fine so far with the few edits I have made.

Only issue I had was the first time I decompiled the framework-res and had an empty folder... then I realized like an idiot that I had forgotten to install the new aapt that I had downloaded earlier with the new SDK. Opps. After that its been fine.

I have more apks I plan to work with tomorrow so if I run into anything I'll post it.

Thanks again to you and Paul!
[Android Software Development] xxhorseriderxxx:
I'll post the 4.2 keyboard for starters... if only I could get this recompiled correctly... (I know that 4.2 doesn't compile yet)

but as feedback, I seemingly can decompile with no issue.
[Android Software Development] androidphone2012:
can decompile 4.2 SystemUI.apk, but can't recompile

I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\apk\other\..\projects\SystemUI.apk\AndroidManifest.xml:55: error: No resource identifier found for attribute 'primaryUserOnly' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\DOCUME~1\Kts\LOCALS~1\Temp\APKTOOL8720739747988007423.tmp, -I, C:\Documents and Settings\Kts\apktool\framework\1.apk, -S, C:\apk\other\..\projects\SystemUI.apk\res, -M, C:\apk\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:337)
at brut.androlib.Androlib.buildResources(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:207)
at brut.androlib.Androlib.build(Androlib.java:180)
at brut.apktool.Main.cmdBuild(Main.java:209)
at brut.apktool.Main.main(Main.java:72)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\DOCUME~1\Kts\LOCALS~1\Temp\APKTOOL8720739747988007423.tmp, -I, C:\Documents and Settings\Kts\apktool\framework\1.apk, -S, C:\apk\other\..\projects\SystemUI.apk\res, -M, C:\apk\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more

Edit : and can't decompile 4.2 framework-res.apk

I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01080291 drawable/ic_ab_back_holo_dark, config=-xhdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:197)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:166)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:131)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:106)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:390)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:56)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:48)
at brut.androlib.Androlib.getResTable(Androlib.java:54)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:170)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:135)
at brut.apktool.Main.main(Main.java:70)
[Android Software Development] clubtech:
Same exact error here. N7 4.2 framework-res.apk
[Android Software Development] paulobrien:
androidphone2012 / clubtech, have you actually read the posts above yours?

P
[Android Software Development] androidphone2012:
Could you release your build please
[Android Software Development] iBotPeaches:
Did you even read the 2 posts you quoted?
[Android Software Development] androidphone2012:
I'm terribly sorry. But I am unable to build from source...
[Android Software Development] juliano_q:
Hi, I did the same (built the apktool from Paul) but I am having an error to compile. I am using the last aapt for Mac on the op.

Anyone know which aapt I can install on mac to build for android 4.2? Is it possible?

Thanks
[Android Software Development] iBotPeaches:
Bah everyone just stop and wait.

Read the last 2 pages. If you can't build from source, then you wait for an official release. Or fix your problems. I build from source on windows and Ubuntu without error.
[Android Software Development] juliano_q:
Did you read my post? I built the jar from source but I am having an error that I think is related with aapk not updated for Mac. Nothing to do with building from source.
[Android Software Development] iBotPeaches:
Just a guess but probably the new aapt in the new android SDK.
[Android Software Development] juliano_q:
Thanks it worked, sorry about the stupid question, my first time dealing with apktool.
[Android Software Development] Jamison904:
Ok guys I have been searching for over a month on this. . . I have even wiped and re-installed Ubuntu. I can decompile everything BUT always get this error trying to re-compile even just decompiling and re-compiling. Thanks for looking!!

Device info:

Samsung Galaxy S3 T-999

Android 4.1.1

Touchwiz

ROM

Error . . .
[Android Software Development] CosmicDan:
You have an old version of aapt somewhere in your path that is being used over the newest one in the OP.
[Android Software Development] Jamison904:
#android maybe?

http://pastebin.com/hAEPSjVt

And thanks. If I can't find it... guess it is time to upgrade to 12.10 :cool:
[Android Software Development] CosmicDan:
Remove/rename aapt.exe from the Android SDK and replace it with the one from the OP.
[Android Software Development] markdmac:
Thanks for sharing. Regretfully I am new to modding, can you point me to a resource on how I can compile your changes for use on a Windows System?
[Android Software Development] Q9Nap:
tried building from source on linux mint 64 bit and get the following error:

> /home/mint/Apktool-master/.git/refs/heads/master doesn't exist

main objective i'm trying to achieve is modding the 4.2 GalleryGoogle.apk to remove photosphere and panorama from the popup menu because those modes don't work on my device. when i try to decompile and recompile without editing anything, i get the following error:

>apktool b GalleryGoogle GalleryGoogle-1.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\mhous33\NoInstall\ApkMgr\other\GalleryGoogle\res\values\styles.xml:168:
error: Error retrieving parent for item: No resource found that matches the giv
en name 'TextAppearance'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-ver
sion, 16, -F, C:\Users\mhous33\AppData\Local\Temp\APKTOOL410671841535700100.tmp,
-I, C:\Users\mhous33\apktool\framework\1.apk, -S, C:\Users\mhous33\NoInstall\Ap
kMgr\other\GalleryGoogle\res, -M, C:\Users\mhous33\NoInstall\ApkMgr\other\Galler
yGoogle\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:337)
at brut.androlib.Androlib.buildResources(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:207)
at brut.androlib.Androlib.build(Androlib.java:180)
at brut.apktool.Main.cmdBuild(Main.java:209)
at brut.apktool.Main.main(Main.java:72)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 10, --target-sdk-version, 16, -F, C:\Users\mhous33\AppData\Local\Temp
\APKTOOL410671841535700100.tmp, -I, C:\Users\mhous33\apktool\framework\1.apk, -S
, C:\Users\mhous33\NoInstall\ApkMgr\other\GalleryGoogle\res, -M, C:\Users\mhous3
3\NoInstall\ApkMgr\other\GalleryGoogle\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more

>

please help :/
[Android Software Development] CosmicDan:
Use git clone command instead of downloading a ZIP/tarball.
[Android Software Development] Q9Nap:
cool thanks!
[Android Software Development] Spannaa:
Thanks for that Q9Nap.

I tried building with Git for Windows but it failed every time so I switched to an Ubuntu VMware machine and it worked first time!
[Android Software Development] Q9Nap:
yeah i tried git for windows too, no luck. gonna have to get the linux mint java issue worked out. would you mind sharing your build?
[Android Software Development] atl4ntis:
compiled on both linux and windows, tho on windows there was an ioexception due file path not normalizated, so had to modify the smali build.gradle according to latest changes from smali dev, but at the end after a successfull build the output file is empty, only manifest in it.
[Android Software Development] sendhiloo7:
you can find here /brut.apktool/apktool-cli/build/libs/
[Android Software Development] asrock37:
I think you should re-install the framework. java -jar apktool.jar if framework-res.apk
[Android Software Development] tmcwilliam01:
Okay I'm still a bit of a n00b so am I typing what you have bolded into the command line?

Edit: I did type that in the command line for both the framework and twframework and I'm still getting the same error on build. =(

Rocking some FreeGS3 JB Love!
[Android Software Development] atl4ntis:
it's there but is empty, only the manifest in it
[Android Software Development] Spannaa:
I could but there'd be no point really.

I only persevered to get a working git building setup on my ubuntu vmware machine.

Although the built jar will decompile/compile apks without any errors showing, it's still not the finished article - I'd wait until iBotPeaches releases v1.5.1 proper.
[Android Software Development] anukilimanoor:
I'm using this apktool for decompiling and compiling apks version 4.1.1 and everything is working perfect. But I cant able to use this tool for 4.1.2.

Re-installed new framework and tried to decompile SecPhone.apk

without modification tried to compile but giving me error.
[Android Software Development] djmatt604:
Can you post the error please?

Sent from my T989D bleeding CM10 inverted awesome
[Android Software Development] anukilimanoor:
E:\LK4>apktool b SecPhone
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'callFailed_timeout_408_487' has no default translation in
E:\LK4\SecPhone\res; found: pt
aapt: warning: string 'reject_cause_location_reg_fail' has no default translatio
n in E:\LK4\SecPhone\res; found: pt
aapt: warning: string 'reject_cause_location_registering' has no default transla
tion in E:\LK4\SecPhone\res; found: pt
aapt: warning: string 'reject_cause_skt_registering' has no default translation
in E:\LK4\SecPhone\res; found: pt
Exception in thread "main" E:\LK4\SecPhone\res\values-es\strings.xml:195: error:
Multiple substitutions specified in non-positional format; did you mean to add
the formatted="false" attribute?
E:\LK4\SecPhone\res\values-es\strings.xml:196: error: Unexpected end tag string
E:\LK4\SecPhone\res\values-es-rUS\strings.xml:201: error: Multiple substitutions
specified in non-positional format; did you mean to add the formatted="false" a
ttribute?
E:\LK4\SecPhone\res\values-es-rUS\strings.xml:202: error: Unexpected end tag str
ing
E:\LK4\SecPhone\res\values-it\strings.xml:201: error: Multiple substitutions spe
cified in non-positional format; did you mean to add the formatted="false" attri
bute?
E:\LK4\SecPhone\res\values-it\strings.xml:202: error: Unexpected end tag string
brut.androlib.AndrolibException: brut.common.BrutException: could not exec comma
nd: [aapt, p, -F, C:\Users\Anu\AppData\Local\Temp\APKTOOL5676600040224648634.tmp
, -I, C:\Users\Anu\apktool\framework\1.apk, -S, E:\LK4\SecPhone\res, -M, E:\LK4\
SecPhone\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Anu\AppData\Local\Temp\APKTOOL5676600040224648634.tmp, -I, C:\Users\Anu\apk
tool\framework\1.apk, -S, E:\LK4\SecPhone\res, -M, E:\LK4\SecPhone\AndroidManife
st.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
[Android Software Development] djmatt604:
Hm. When you upgraded the framework, did you simply do it over the framework that was there before? Maybe try actually deleting the previous framework file before uploading the new one...just an idea...

Sent from my GT-P7510 bleeding CM10 inverted awesome
[Android Software Development] anukilimanoor:
No luck.. Same error..
[Android Software Development] djmatt604:
Make sure you're using the aapt from the OP?

Sent from my GT-P7510 bleeding CM10 inverted awesome
[Android Software Development] anukilimanoor:
Yes I'm using the same...
[Android Software Development] asrock37:
E:\LK4\SecPhone\res\values-es\strings.xml:196: error: Unexpected end tag string

E:\LK4\SecPhone\res\values-es-rUS\strings.xml:201: error: Multiple substitutions

specified in non-positional format; did you mean to add the formatted="false" a

ttribute?

E:\LK4\SecPhone\res\values-es-rUS\strings.xml:202: error: Unexpected end tag str

ing

E:\LK4\SecPhone\res\values-it\strings.xml:201: error: Multiple substitutions spe

cified in non-positional format; did you mean to add the formatted="false" attri

bute?

E:\LK4\SecPhone\res\values-it\strings.xml:202: error: Unexpected end tag string

look at this lines and compare with the string.xml in values folder. This is just an invalid format, maybe it was not qouted or there are single qoute in the string. if there are single qoute, you should enclosed the string in a double qoute.

You can easily find the error by looking at the numbers - the numbers represent the line number of the strings. look at the bold fonts those are the line numbers.

try it
[Android Software Development] anukilimanoor:
I didnt edit anything on the files... Just decompiled and trying to compile. Because i was facing same problem after editing some files, so I thought better test it without editing...
[Android Software Development] asrock37:
can you attached the apk and we can have a look why?