#429 IllegalArgumentException: Unknown type

v4.5
closed-fixed
Ant task (25)
3
2013-12-27
2012-01-09
pjv
No

Proguard 4.4, together with Android and ant

When I add

  -printconfiguration "$\{obfuscate.absolute.dir\}/used\_config.txt"

to my ant script to let proguard print its used configuration, proguard gives an error and stacktrace. Without it it works ok enough.

I've attached the probable triggering library jar.

[proguard] Printing configuration to [/home/pjv/workspace/collectionista-stable/collectionista-fix-easy-ICS-bugs2/collectionista/bin/proguard/used_config.txt]...

BUILD FAILED
/home/pjv/workspace/collectionista-stable/collectionista-fix-easy-ICS-bugs2/collectionista/build.xml:828: java.lang.IllegalArgumentException: Unknown type ['Lcom/google/api/client/util/Key;']
at proguard.classfile.util.ClassUtil.externalType(ClassUtil.java:674)
at proguard.ConfigurationWriter.writeFieldSpecification(ConfigurationWriter.java:517)
at proguard.ConfigurationWriter.writeOption(ConfigurationWriter.java:461)
at proguard.ConfigurationWriter.writeOption(ConfigurationWriter.java:373)
at proguard.ConfigurationWriter.writeOptions(ConfigurationWriter.java:340)
at proguard.ConfigurationWriter.write(ConfigurationWriter.java:158)
at proguard.ProGuard.printConfiguration(ProGuard.java:175)
at proguard.ProGuard.execute(ProGuard.java:68)
at proguard.ant.ProGuardTask.execute(ProGuardTask.java:279)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at com.android.ant.IfElseTask.execute(IfElseTask.java:120)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
at org.apache.tools.ant.Main.runBuild(Main.java:801)
at org.apache.tools.ant.Main.startAnt(Main.java:218)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Discussion

  • pjv
    pjv
    2012-01-09

    probable triggering library jar

     
  • pjv
    pjv
    2012-01-09

    • priority: 5 --> 3
     
  • Eric Lafortune
    Eric Lafortune
    2012-01-09

    This problem is triggered by the configuration, irrespective of the actual jars. I seem to remember that it has been fixed in recent versions though. Could you try with ProGuard 4.7? If the problem persists, could you provide the part of your configuration related to the Google API client?

     
  • pjv
    pjv
    2013-08-19

    This works now in proguard 4.7. My complex project however also has evolved, and I have moved on to google-api-client-1.6.0-beta.jar, so we can't be sure though.

     
  • Eric Lafortune
    Eric Lafortune
    2013-12-27

    • status: open --> closed-fixed
    • Group: --> v4.5