Ver Mensaje Individual
  #18  
Viejo 29/11/11, 22:54:11
Array

[xs_avatar]
elgonspain elgonspain no está en línea
Usuario muy activo
 
Fecha de registro: mar 2011
Mensajes: 1,169
Modelo de smartphone: HTC Desire HD | Galaxy SIII | Sony Xperia Z3

Bueno pues esto es el log despues de indicarle que me compile la carpeta, aqui lo que hago es la opcion segunda, es decir, copiado de imagenes en drawable-hdpi, aņadir stat_notify_syncanim0.xml a drawable, copiado del supuesto codigo en public.xml, el codigo te lo pongo al final del post.


W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
(skipping index file 'C:\Documents and Settings\Propietario\Escritorio\APK T
OOL\framework-res\res\drawable-hdpi\Thumbs.db')
C:\Documents and Settings\Propietario\Escritorio\APK TOOL\framework-res\res\valu
es\public.xml:3223: error: Public symbol drawable/stat_notify_sync_anim2 declare
d here is not defined.
C:\Documents and Settings\Propietario\Escritorio\APK TOOL\framework-res\res\valu
es\public.xml:3229: error: Public entry identifier 0x1080362 entry index is larg
er than available symbols (index 866, total symbols 866).
C:\Documents and Settings\Propietario\Escritorio\APK TOOL\framework-res\res\valu
es\public.xml:3229: error: Public symbol drawable/stat_notify_sync_anim8 declare
d here is not defined.
C:\Documents and Settings\Propietario\Escritorio\APK TOOL\framework-res\res\valu
es\public.xml:3230: error: Public entry identifier 0x1080363 entry index is larg
er than available symbols (index 867, total symbols 866).
C:\Documents and Settings\Propietario\Escritorio\APK TOOL\framework-res\res\valu
es\public.xml:3230: error: Public symbol drawable/stat_notify_sync_anim9 declare
d here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\DOCUME~1\PROPIE~1\CONFIG~1\Temp\
APKTOOL1613637532135704357.tmp, -x, -S, C:\Documents and Settings\Propietario\Es
critorio\APK TOOL\framework-res\res, -M, C:\Documents and Settings\Propietario\E
scritorio\APK TOOL\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:301)
at brut.androlib.Androlib.buildResources(Androlib.jav a:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\D
OCUME~1\PROPIE~1\CONFIG~1\Temp\APKTOOL161363753213 5704357.tmp, -x, -S, C:\Docume
nts and Settings\Propietario\Escritorio\APK TOOL\framework-res\res, -M, C:\Docum
ents and Settings\Propietario\Escritorio\APK TOOL\framework-res\AndroidManifest.
xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:191)
... 6 more

Aqui acaba el log, el codigo lo pego en una linea cualquiera y es este

<public type="drawable" name="stat_notify_sync_anim1" id="0x0108035a" />
<public type="drawable" name="stat_notify_sync_anim10" id="0x0108035b" />
<public type="drawable" name="stat_notify_sync_anim2" id="0x0108035c" />
<public type="drawable" name="stat_notify_sync_anim3" id="0x0108035d" />
<public type="drawable" name="stat_notify_sync_anim4" id="0x0108035e" />
<public type="drawable" name="stat_notify_sync_anim5" id="0x0108035f" />
<public type="drawable" name="stat_notify_sync_anim6" id="0x01080360" />
<public type="drawable" name="stat_notify_sync_anim7" id="0x01080361" />
<public type="drawable" name="stat_notify_sync_anim8" id="0x01080362" />
<public type="drawable" name="stat_notify_sync_anim9" id="0x01080363" />

Este codigo lo pego en una linea cualquiera ya que vi que en el otro no guardaba un orden y todos los comandos del notify_sync no estaban ordenados, es decir uno seguido del otro. Lo que si me he fijado que el notepad++ que es el que uso para esto si desplazo una linea de codigo con un intro para pegar el codigo nuevo, me pone una flecha delante del codigo desplazado, no se por que hace eso, me imagino que sera para que sepas que linea fue donde realizaste la modificacion por si la pierdes de vista. Lo que hice en varias ocasiones fue borrarla y rellenar el espacio con espacios en blancos pero tambien me daba error, y dejandola tambien me da error.

El stat_notify que incluyo en drawable contiene el siguiente codigo nada mas:

<?xml version="1.0" encoding="UTF-8"?>
<animation-list androidneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="70" android:drawable="@drawable/stat_notify_sync_anim1" />
<item android:duration="70" android:drawable="@drawable/stat_notify_sync_anim2" />
<item android:duration="70" android:drawable="@drawable/stat_notify_sync_anim3" />
<item android:duration="70" android:drawable="@drawable/stat_notify_sync_anim4" />
<item android:duration="70" android:drawable="@drawable/stat_notify_sync_anim5" />
<item android:duration="70" android:drawable="@drawable/stat_notify_sync_anim6" />
<item android:duration="70" android:drawable="@drawable/stat_notify_sync_anim7" />
<item android:duration="70" android:drawable="@drawable/stat_notify_sync_anim8" />
<item android:duration="70" android:drawable="@drawable/stat_notify_sync_anim9" />
<item android:duration="70" android:drawable="@drawable/stat_notify_sync_anim10" />
</animation-list>

Venga a ver si damos con ello.
Saludosssss
Responder Con Cita