Unable to proguard my extension

:rofl: :rofl: :rofl: hahahahahhaha

@Techno_Vedang don't forget to close this topic. Thank you :kissing_heart:

1 Like

check the edit now :joy:

:rofl: :joy:
oh ant extensions -Dproguard=1 not works too, even though it works on me :thinking:

1 Like

image

does your extension contain libs?

1 Like

yes it contains unity sdk

Okay for extension that contains lib.
Should look at this message in your build.xml and I hope your problem can be solved

<!-- FOR DEVELOPER: Add the needed libraries for your extension right herelike the ones above, just after copying them to the depsdirectory.<libraryjar file="${public.deps.dir}/my-awesome-library.jar" /> -->

1 Like

still the same error : ( is there any possibilities of issues in my sources? should I reclone it?

can you show me where you put a line like this
<libraryjar file="${public.deps.dir}/my-awesome-library.jar" />
(Screenshot)

1 Like

image

if you build your extension without proguard does it work?

1 Like

Yes it works

@ewpatton sir please help

Did you also add the relevant libraries to the CopyComponentLibraries target? Do you see that target being run in the ant log? If that target doesn't run, the libraries won't be in the expected location.

1 Like

yes I have added. extension is working fine without proguard

It might be the case that we dropped a couple JARs and didn't update the proguard task (we don't use proguard so this isn't on the critical path). If the libraries in question aren't listed in the CopyComponentLibraries or found in the lib/android/support directory, you may just want to remove the relevant lines from the proguard task.

2 Likes

should I share jars.txt file inside lib/android/support directory here

1 Like

I also faced this error a few days ago. In my case it was solved when I updated the Android support libraries.

1 Like

I have switched to extension template and it's working fine there :slightly_smiling_face:

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.