asebak / embeddedlinux-jvmdebugger-intellij

Embedded Linux JVM Debugger for Raspberry Pi for IDEA Platform
Apache License 2.0
55 stars 21 forks source link

Remove old librairies from target with new build #90

Closed charlesbourget closed 2 years ago

charlesbourget commented 2 years ago

Hi!

So recently we've begun having this problem when switching between different branches on our projects. This is the error we get when we are switching between an old stable branch and our master branch :

java.lang.Exception: java.lang.NoSuchMethodError

We have isolated this problem to the fact that old libraries are not cleaned when uploading a new build. This fix cleans the lib directory on the target like we do with the classes directory. We don't think this fix will have a performance hit since the libs folder is uploaded to the target on every build.