I\'ve got very strange error, because it only happens after installing app from generated .apk
. When I try to run the app through IDE, it works fine.
While I'm not sure why this results in IllegalAccessError, you should be defining those constants like this:
companion object {
const val ANIMATION_DEFAULT = 0
const val ANIMATION_SLIDE_FROM_RIGHT = 1
const val ANIMATION_SLIDE_FROM_BOTTOM = 2
}
And that should solve your problem, otherwise using @JvmField
instead of @JvmStatic
would have been a better choice.