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

Unable to run in old android versions #21

Closed
jlberrocal opened this issue Nov 24, 2017 · 3 comments
Closed

Unable to run in old android versions #21

jlberrocal opened this issue Nov 24, 2017 · 3 comments

Comments

@jlberrocal
Copy link

I have been using this great library for some time, however i always tested in devices with SDK greater than 21 now i had to run it in a device with SDK 17 and i'm getting the following errors:

E/dalvikvm: Could not find class 'org.koin.android.module.AndroidModule$androidApplication$2', referenced from method org.koin.android.module.AndroidModule.<init>

and this is the final exception

E/AndroidRuntime: FATAL EXCEPTION: main
                  java.lang.ExceptionInInitializerError
                      at com.innoware.aeromedicion.MainApplication.onCreate(MainApplication.kt:24)
                      at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000)
                      at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391)
                      at android.app.ActivityThread.access$1300(ActivityThread.java:141)
                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
                      at android.os.Handler.dispatchMessage(Handler.java:99)
                      at android.os.Looper.loop(Looper.java:137)
                      at android.app.ActivityThread.main(ActivityThread.java:5041)
                      at java.lang.reflect.Method.invokeNative(Native Method)
                      at java.lang.reflect.Method.invoke(Method.java:511)
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
                      at dalvik.system.NativeStart.main(Native Method)
                   Caused by: java.lang.NoClassDefFoundError: kotlin.jvm.internal.PropertyReference1Impl
                      at org.koin.android.module.AndroidModule.<clinit>(AndroidModule.kt)
                      at com.innoware.aeromedicion.MainApplication.onCreate(MainApplication.kt:24) 
                      at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000) 
                      at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391) 
                      at android.app.ActivityThread.access$1300(ActivityThread.java:141) 
                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294) 
                      at android.os.Handler.dispatchMessage(Handler.java:99) 
                      at android.os.Looper.loop(Looper.java:137) 
                      at android.app.ActivityThread.main(ActivityThread.java:5041) 
                      at java.lang.reflect.Method.invokeNative(Native Method) 
                      at java.lang.reflect.Method.invoke(Method.java:511) 
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 
                      at dalvik.system.NativeStart.main(Native Method) 
@arnaudgiuliani
Copy link
Member

Hello Did you rebuild entirely your project ? Did you check your app need multidex ?

We have several examples that run perfectly in 17
check the Todo app
for example

@jlberrocal
Copy link
Author

Yes i rebuild my entire project with no positive results, multidex was enabled

with other DI library i had to change the Application class to MultiDexApplication and it worked, i don't know if the same fix apply for your library

@arnaudgiuliani
Copy link
Member

Yes, try to change your supertype from Application to MultiDexApplication

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

No branches or pull requests

2 participants