Koin: java.lang.NoClassDefFoundError: java.util.concurrent.ConcurrentHashMap$KeySetView

Created on 30 Jan 2018  路  9Comments  路  Source: InsertKoinIO/koin

Hi,

This is a great library. However I am getting the following error after the update to 0.8.1, if I run in a device with SDK 16:

E/AndroidRuntime: FATAL EXCEPTION: main java.lang.NoClassDefFoundError: java.util.concurrent.ConcurrentHashMap$KeySetView at org.koin.core.instance.InstanceFactory.findInstance(InstanceFactory.kt:45) at org.koin.core.instance.InstanceFactory.retrieveInstance(InstanceFactory.kt:27) at org.koin.KoinContext.resolveInstance(KoinContext.kt:70) at com.murselturk.radyo7.ui.base.BaseActivity$$special$$inlined$inject$1.invoke(AndroidExt.kt:106) at kotlin.SynchronizedLazyImpl.getValue(Lazy.kt:131)

Any ideas what to do?
Thanks.

Most helpful comment

Nice. I push it to 0.8.2 thanks !

All 9 comments

Hello,

the upgrade of Kotlin in 1.2.21 effectively broke the API of our instance registry and make it like it were in jdk 8.

I'll fix it for 0.8.2 馃憤

In android in broken below API level 24

I've also tested in a device with SDK 22 and had no error messages. Maybe below API Level 21

i desumed 21 from KeySetView android docs, but tested on Api 19 emulator with the same crash, i it can help i can provide my gradle

Can you try this version of Koin? 0.8.2-alpha-14

Works like a charm now :)

Nice. I push it to 0.8.2 thanks !

Don't hesitate if you see problem like this one 馃憤

Thank you so much for being so proactive

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jeevuz picture Jeevuz  路  4Comments

LukasAnda picture LukasAnda  路  3Comments

iRYO400 picture iRYO400  路  3Comments

caleb-allen picture caleb-allen  路  4Comments

TedHoryczun picture TedHoryczun  路  4Comments