Author Topic: Problem with android Proguard.  (Read 2563 times)

Offline kiffa

  • long
  • ***
  • Posts: 199
    • View Profile
Problem with android Proguard.
« on: September 17, 2012, 05:48:56 am »
For some reason, i need obscure my code by using Proguard.

And when i do this, there was an error:

[2012-09-17 11:26:12 - AndroidDog] Proguard returned with error code 1. See console
[2012-09-17 11:26:12 - AndroidDog] Warning: com.threed.jpct.BufferUtilNative: can't find referenced class com.badlogic.gdx.utils.BufferUtils
[2012-09-17 11:26:12 - AndroidDog] Warning: com.threed.jpct.BufferUtilNative: can't find referenced class com.badlogic.gdx.utils.BufferUtils
[2012-09-17 11:26:12 - AndroidDog]       You should check if you need to specify additional program jars.
[2012-09-17 11:26:12 - AndroidDog] Warning: there were 2 unresolved references to classes or interfaces.
[2012-09-17 11:26:12 - AndroidDog]          You may need to specify additional library jars (using '-libraryjars').
[2012-09-17 11:26:12 - AndroidDog] java.io.IOException: Please correct the above warnings first.
[2012-09-17 11:26:12 - AndroidDog]    at proguard.Initializer.execute(Initializer.java:321)
[2012-09-17 11:26:12 - AndroidDog]    at proguard.ProGuard.initialize(ProGuard.java:211)
[2012-09-17 11:26:12 - AndroidDog]    at proguard.ProGuard.execute(ProGuard.java:86)
[2012-09-17 11:26:12 - AndroidDog]    at proguard.ProGuard.main(ProGuard.java:492)

Seems jPCT-AE.jar referenced the class  com.badlogic.gdx.utils.BufferUtils, does this class be useful? If so, how to import it?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Problem with android Proguard.
« Reply #1 on: September 17, 2012, 09:03:02 pm »
That class is part of libgdx. jPCT-AE can make use of it if libgdx is in the classpath. Just download libgdx and adds it to the classpath when running proguard. You don't have to use in your actual project though. It can be useful on older Android version but on current ones, it's not really needed to bother with it unless you are animating large objects in which case it might help with performance.