Cleveroad/AdaptiveTableLayout

java.lang.IllegalAccessError

ugar0ff opened this issue · 1 comments

If I use adapter on kotlin I'm getting java.lang.IllegalAccessError: Illegal class access: 'me class' attempting to access 'com.cleveroad.adaptivetablelayout.ViewHolderImpl' (declaration of 'me class' appears in ...). If I use adapter on java I don't have this problem.

After researching, I found this to be a known issue using Java libraries with Kotlin because of the following:
Java allows accessing protected members from other classes in the same package and Kotlin doesn’t, so Java classes will have broader access to the code.

Do you plan to support Kotlin?

I had the same issue in my kotlin application and recently I've fixed in my own fork. I've made a pull request on #41