zdzhjx / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
.

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

GoogleCodeExporter commented 9 years ago
Issue 19 has been merged into this issue.

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

GoogleCodeExporter commented 9 years ago
Issue 20 has been merged into this issue.

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

GoogleCodeExporter commented 9 years ago
Issue 30 has been merged into this issue.

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

GoogleCodeExporter commented 9 years ago
Issue 35 has been merged into this issue.

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

GoogleCodeExporter commented 9 years ago
Issue 33 has been merged into this issue.

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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
Here my Phone.apk from Motorola Milestone 2.1update1

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

Attachments:

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
(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 commented 9 years ago
Great job.  Works for me!

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

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
Could you upload this file?

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

GoogleCodeExporter commented 9 years ago
Here it is

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

Attachments:

GoogleCodeExporter commented 9 years ago
$ 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 commented 9 years ago
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 commented 9 years ago
1.1.2 doesn't exist ;-)

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

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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