Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"entry index is larger than available symbols" error #40

Closed
GoogleCodeExporter opened this issue Mar 18, 2015 · 28 comments
Closed

"entry index is larger than available symbols" error #40

GoogleCodeExporter opened this issue Mar 18, 2015 · 28 comments

Comments

@GoogleCodeExporter
Copy link

.

Original issue reported on code.google.com by Brut.alll on 31 May 2010 at 1:14

@GoogleCodeExporter
Copy link
Author

Issue 19 has been merged into this issue.

Original comment by Brut.alll on 31 May 2010 at 1:15

@GoogleCodeExporter
Copy link
Author

Issue 20 has been merged into this issue.

Original comment by Brut.alll on 31 May 2010 at 1:16

@GoogleCodeExporter
Copy link
Author

Issue 30 has been merged into this issue.

Original comment by Brut.alll on 31 May 2010 at 1:22

@GoogleCodeExporter
Copy link
Author

Issue 35 has been merged into this issue.

Original comment by Brut.alll on 31 May 2010 at 1:24

@GoogleCodeExporter
Copy link
Author

Issue 33 has been merged into this issue.

Original comment by Brut.alll on 1 Jun 2010 at 8:16

@GoogleCodeExporter
Copy link
Author

Lemme know if rebuilt files work properly. I failed to rebuild them 1:1, I 
think it 
should be ok, but who knows...

Original comment by Brut.alll on 3 Jun 2010 at 6:45

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Issue as reported in #30 no longer occurs for me when building 
com.htc.resources.apk 
but I get the following instead:

W/ResourceType( 2320): Bad string block: last string is not 0-terminated
D:\DavidM\Android\APKTool\com.htc.resources\res\values\styles.xml:6: error: 
Error: No 
resource found that matches the given name: attr 'android:textColor'.

Not sure which "string block" is being referred to but the xml file seems fine.

Original comment by djmcnz@gmail.com on 3 Jun 2010 at 9:15

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

I got problem simlar to Comment 7 for Phone.apk posted in Issue 33.

Original comment by mkzhang1...@gmail.com on 4 Jun 2010 at 7:25

@GoogleCodeExporter
Copy link
Author

Got something like that
/ResourceType(19101): Bad string block: last string is not 0-terminated
/home/lado/development/android/apktool/Phone/dst/res/values/styles.xml:4: error:
Error: No resource found that matches the given name: attr 
'android:windowBackground'.
/home/lado/development/android/apktool/Phone/dst/res/values/styles.xml:5: error:
Error: No resource found that matches the given name: attr 
'android:windowFrame'.
/home/lado/development/android/apktool/Phone/dst/res/values/styles.xml:8: error:
Error: No resource found that matches the given name: attr 
'android:windowBackground'.


Dozens of lines

and 

then

Exception in thread "main" brut.androlib.AndrolibException:
brut.common.BrutException: could not exec command: [aapt, p, -F,
/tmp/APKTOOL8395038617348458788.tmp, -I, /home/lado/apktool/framework/1.apk, -S,
/home/lado/development/android/apktool/Phone/dst/res, -M,
/home/lado/development/android/apktool/Phone/dst/AndroidManifest.xml,
/home/lado/development/android/apktool/Phone/dst/9patch]
    at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
    at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
    at brut.androlib.Androlib.buildResources(Unknown Source)
    at brut.androlib.Androlib.build(Unknown Source)
    at brut.androlib.Androlib.build(Unknown Source)
    at brut.apktool.Main.cmdBuild(Unknown Source)
    at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F,
/tmp/APKTOOL8395038617348458788.tmp, -I, /home/lado/apktool/framework/1.apk, -S,
/home/lado/development/android/apktool/Phone/dst/res, -M,
/home/lado/development/android/apktool/Phone/dst/AndroidManifest.xml,
/home/lado/development/android/apktool/Phone/dst/9patch]
    at brut.util.OS.exec(Unknown Source)
    ... 7 more



Original comment by herrl...@gmail.com on 4 Jun 2010 at 7:29

@GoogleCodeExporter
Copy link
Author

Here my Phone.apk from Motorola Milestone 2.1update1

Original comment by herrl...@gmail.com on 4 Jun 2010 at 8:17

Attachments:

@GoogleCodeExporter
Copy link
Author

Ahh, I know, what it is. You need aapt tool from newest SDK, because new 
Android 
framework is not compatible with older aapt.

I will update install packages.

Original comment by Brut.alll on 4 Jun 2010 at 9:57

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Ahh, I know, what it is. You need aapt tool from newest SDK, because new 
Android 
framework is not compatible with older aapt.

I will update install packages.

Original comment by Brut.alll on 4 Jun 2010 at 9:57

@GoogleCodeExporter
Copy link
Author

(2010.06.04):

  * updated install packages to 2.2r01-1 version. Apktool 1.2.0 requires newer aapt 
tool, so you must update to use it.

Let me know, whether this worked for you :-)

Original comment by Brut.alll on 4 Jun 2010 at 10:45

@GoogleCodeExporter
Copy link
Author

Great job.  Works for me!

Original comment by herrl...@gmail.com on 4 Jun 2010 at 10:48

@GoogleCodeExporter
Copy link
Author

This problem is still here.
Sprint HTC Hero CDMA (2.1-update1)

building framework-res

/home/astar/android/kitchen/build/111/res/values/public.xml:2471: error: Public 
entry
identifier 0x1080338 entry index is larger than available symbols (index 824, 
total
symbols 824).
/home/astar/android/kitchen/build/111/res/values/public.xml:2471: error: Public
symbol drawable/selected_day_background declared here is not defined.

Original comment by stari...@gmail.com on 4 Jun 2010 at 11:48

@GoogleCodeExporter
Copy link
Author

Could you upload this file?

Original comment by Brut.alll on 4 Jun 2010 at 11:50

@GoogleCodeExporter
Copy link
Author

Here it is

Original comment by stari...@gmail.com on 4 Jun 2010 at 12:31

Attachments:

@GoogleCodeExporter
Copy link
Author

$ apktool d framework-res.apk 
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...

$ apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...

Could you verify, that you are using apktool 1.2.0? Just run "apktool" and 
version is 
on top of usage help.

Original comment by Brut.alll on 4 Jun 2010 at 12:41

@GoogleCodeExporter
Copy link
Author

Ooops. I'm really sorry.
I've used old apktool.jar (1.1.2)

Works like a charm! Thank you.

Original comment by stari...@gmail.com on 4 Jun 2010 at 12:43

@GoogleCodeExporter
Copy link
Author

1.1.2 doesn't exist ;-)

Original comment by Brut.alll on 4 Jun 2010 at 12:45

@GoogleCodeExporter
Copy link
Author

Original comment by Brut.alll on 4 Jun 2010 at 12:47

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

I consider it fixed too, works for me! You're the man, thanks.

Original comment by djmcnz@gmail.com on 4 Jun 2010 at 3:40

@GoogleCodeExporter
Copy link
Author

Okay so I have the newest of the newest aapt. Got it today, but for some reason 
I still cannot build. I am having the same errors. 
"/Users/****/Desktop/framework-res/res/values/public.xml:2345: error: Public 
symbol string/throttled_notification_message declared here is not defined."
Any clue where this could be coming from? I'm on Mac OS X Leopard and solved 
the whole java problem already. I was also having a problem with greasekit 
interfering. Idk why that would be involved at all.

Original comment by MacManCh...@gmail.com on 3 Mar 2011 at 7:37

@GoogleCodeExporter
Copy link
Author

Do not use the latest aapt. Use the one from SDK version 8.

Original comment by mkzhang1...@gmail.com on 3 Mar 2011 at 7:50

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

thank you I realized I was using the aapt from a different platform-tools 
folder. not even sure where it came from. again thank you. new problem has 
appeared though. but this one I think I can figure out :P

Original comment by MacManCh...@gmail.com on 3 Mar 2011 at 8:41

@GoogleCodeExporter
Copy link
Author

same problem than the others......
used the latest and the aapt form SDK version 8 (got apktool 1.3.2)
--> recompiling a framework from streakdroid 1.9---> its andorid 2.2.2

Original comment by maximili...@googlemail.com on 1 Apr 2011 at 8:01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant