AdaptiveTableLayout icon indicating copy to clipboard operation
AdaptiveTableLayout copied to clipboard

java.lang.IllegalAccessError

Open ugar0ff opened this issue 6 years ago • 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?

ugar0ff avatar Oct 02 '19 13:10 ugar0ff

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

vyguera avatar Dec 30 '19 11:12 vyguera