Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

taskdef class proguard.ant.ProGuardTask cannot be found using the classloader AntClassLoader[]

After upgrading my SDK to Android L, I encounter an problem when building android project by ant.

error output:

/Users/dreamtale/develop/android-sdk-macosx/tools/ant/build.xml:828: taskdef class proguard.ant.ProGuardTask cannot be found using the classloader AntClassLoader[]

Anyone face the same problem?

like image 416
dreamtale Avatar asked Jun 27 '14 12:06

dreamtale


1 Answers

It seems that in the new update the tools directory does not contain the proguard folder anymore, and the build.xml script does not find the proguard jar file. Until an official fix is given, you can workaround this issue as following:

  • donwload proguard from http://proguard.sourceforge.net/. I already had v 4.8 and it worked.
  • unzip the proguard archive to {sdk.dir}/tools and rename the folder "proguard"
  • try again
like image 67
Victor G Avatar answered Sep 26 '22 19:09

Victor G