Proguard on Google Glass Lib -
Proguard on Google Glass Lib -
following answer in order convert apk file jar file , trying remove dead code in jar file (ex glassvoice.apk) in order remove unless methods , avoid error (unable execute dex: method id not in [0, 0xffff]: 65536).
i created sample of application, including jar file , method needed.
in order that, utilize proguard, when seek export application, asked proguard reducing dead code.
unfortunately doesn't go (as can see below ). have 1 jar file, no more.
here proguard.cfg :
-injars libs/glassvoice-dex2jar.jar -outjars glassvoice-dex2jar_out.jar -printmapping mapping.txt -verbose -dontwarn android.support.v4.** -dontwarn sun.misc.** here output:
[...] [2014-06-23 18:07:58 - hotword] warning: com.google.glass.widget.dynamicsizetextview: can't find referenced class com.google.android.glass.hidden.hiddentextview [2014-06-23 18:07:58 - hotword] warning: com.google.glass.widget.dynamicsizetextview: can't find referenced class com.google.android.glass.hidden.hiddentextview [2014-06-23 18:07:58 - hotword] warning: com.google.glass.widget.fastscrolloverlay: can't find referenced method 'float getzoomoutfactor()' in class com.google.android.glass.widget.cardscrollview [2014-06-23 18:07:58 - hotword] warning: com.google.glass.widget.fastscrolloverlay: can't find referenced method 'float getscrollposition()' in class com.google.android.glass.widget.cardscrollview [2014-06-23 18:07:58 - hotword] warning: com.google.glass.widget.fastscrolloverlay: can't find referenced method 'float getzoomscale()' in class com.google.android.glass.widget.cardscrollview [2014-06-23 18:07:58 - hotword] warning: com.google.glass.widget.fastscrolloverlay: can't find referenced method 'android.view.view getitemviewforchildat(int)' in class com.google.android.glass.widget.cardscrollview [2014-06-23 18:07:58 - hotword] warning: com.google.glass.widget.volumecontroldialog: can't find referenced method 'com.google.android.glass.widget.cardscrollgesturer getgesturer()' in class com.google.android.glass.widget.cardscrollview [2014-06-23 18:07:58 - hotword] warning: com.google.glass.widget.volumecontroldialog: can't find referenced class com.google.android.glass.widget.cardscrollgesturer [2014-06-23 18:07:58 - hotword] warning: com.google.glass.widget.volumecontroldialog: can't find referenced class com.google.android.glass.widget.cardscrollgesturer [2014-06-23 18:07:58 - hotword] should check if need specify additional programme jars. [2014-06-23 18:07:58 - hotword] warning: there 163 unresolved references classes or interfaces. [2014-06-23 18:07:58 - hotword] may need specify additional library jars (using '-libraryjars'). [2014-06-23 18:07:58 - hotword] warning: there 51 unresolved references programme class members. [2014-06-23 18:07:58 - hotword] input classes appear inconsistent. [2014-06-23 18:07:58 - hotword] may need recompile them , seek again. [2014-06-23 18:07:58 - hotword] alternatively, may have specify alternative [2014-06-23 18:07:58 - hotword] '-dontskipnonpubliclibraryclassmembers'. [2014-06-23 18:07:58 - hotword] java.io.ioexception: please right above warnings first. [2014-06-23 18:07:58 - hotword] @ proguard.initializer.execute(initializer.java:321) [2014-06-23 18:07:58 - hotword] @ proguard.proguard.initialize(proguard.java:211) [2014-06-23 18:07:58 - hotword] @ proguard.proguard.execute(proguard.java:86) [2014-06-23 18:07:58 - hotword] @ proguard.proguard.main(proguard.java:492) any issues ?
you need this.
-dontwarn com.google.android.glass.**
proguard google-glass google-gdk
Comments
Post a Comment