Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin crash #19

Closed
giuseppesorce opened this issue Nov 8, 2017 · 6 comments
Closed

Kotlin crash #19

giuseppesorce opened this issue Nov 8, 2017 · 6 comments
Labels

Comments

@giuseppesorce
Copy link

I can't use Kotlin.
I use thos code in java works but in kotlin crash..

mCsvFileDataSource = CsvFileDataSourceImpl(this, null) tlPipeline = findViewById<AdaptiveTableLayout>(R.id.tlPipeline) mTableAdapter = SampleLinkedTableAdapter(this, mCsvFileDataSource) tlPipeline.setAdapter(mTableAdapter)

@giuseppesorce giuseppesorce changed the title kotljn crash Kotlin crash Nov 8, 2017
@giuseppesorce
Copy link
Author

i debug and problem is AdaptiveTableLayout interface. It's private and Kotlin cant' get in layout.

@MohammadRezaei92
Copy link

I have error in kotlin too:
java.lang.IllegalAccessError: Illegal class access: 'package name' attempting to access 'com.cleveroad.adaptivetablelayout.AdaptiveTableAdapter' (declaration of 'package name' appears in /data/app/package name/split_lib_slice_5_apk.apk)

@yarovoiag yarovoiag added the bug label Jan 4, 2019
@VadimHalimendikCr
Copy link
Collaborator

First of all thank you for using our library. It be fix in next version.
With best regards Cleveroad team.

@YStepiuk-DOIT
Copy link

Hey everyone!
This issue is closed, but I'm still facing it in version 1.2.1.
Was it really fixed?
And how can I possibly avoid it?

Thanks

@alisoleimani-android
Copy link

Hi, i have the same problem in my Kotlin application.
Caused by: java.lang.IllegalAccessError: Illegal class access: 'co.tinab.farazindsp.adapters.utils.adaptiveTable.MyLinkedTableAdapter' attempting to access 'com.cleveroad.adaptivetablelayout.ViewHolder' (declaration of 'co.tinab.farazindsp.adapters.utils.adaptiveTable.MyLinkedTableAdapter' appears in /data/app/co.tinab.farazindsp-T3vDEUwpVgHl557LoKgBvQ==/base.apk!classes2.dex)

@vyguera
Copy link

vyguera commented Feb 13, 2020

There is a pending pull request that adds support to kotlin and fixes some more bugs. You could try it. #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants