Moxy: Crash at startup

gradle file

apply plugin: 'com.neenbedankt.android-apt'
...
compile 'com.android.support:appcompat-v7:25.0.1'
...
apt 'com.google.dagger:dagger-compiler:2.8'
compile 'com.google.dagger:dagger:2.8'
...
compile 'com.arello-mobile:moxy:1.4.5'
provided 'com.arello-mobile:moxy-compiler:1.4.5'
compile 'com.arello-mobile:moxy-android:1.4.5'
compile 'com.arello-mobile:moxy-app-compat:1.4.5'

crash

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/arellomobile/mvp/MoxyReflector;
at com.arellomobile.mvp.MvpProcessor.getMvpPresenters(MvpProcessor.java:82)
at com.arellomobile.mvp.MvpDelegate.onCreate(MvpDelegate.java:101)
at com.arellomobile.mvp.MvpAppCompatFragment.onCreate(MvpAppCompatFragment.java:23)
at some.package.BaseFragment.onCreate(BaseFragment.java:26)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15

Most upvoted comments

I’ve got the same problem if I using Kotlin in project.

For fix it use kapt 'com.arello-mobile:moxy-compiler:1.4.5'