sockeqwe / mosby

A Model-View-Presenter / Model-View-Intent library for modern Android apps
http://hannesdorfmann.com/mosby/
Apache License 2.0
5.49k stars 841 forks source link

Can not resolve symbol MvpQueuingBasePresenter #288

Closed alexei-28 closed 6 years ago

alexei-28 commented 6 years ago

In my project/build.gradle:

allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://oss.sonatype.org/content/repositories/snapshots/"}
    }
}

in my app/build.gradle:

   implementation 'com.hannesdorfmann.mosby3:mvi:3.1.1-SNAPSHOT'
    implementation 'com.hannesdorfmann.mosby3:mvp:3.1.1-SNAPSHOT'
    implementation 'com.hannesdorfmann.mosby3:viewstate:3.1.1-SNAPSHOT'
    implementation 'com.hannesdorfmann.mosby3:mvp-lce:3.1.1-SNAPSHOT'
    implementation 'com.hannesdorfmann.mosby3:mvp-nullobject-presenter:3.1.1-SNAPSHOT'

My presenter:

public class OfferDetailsPdfPresenterImplMvp extends MvpQueuingBasePresenter<OfferDetailsPdfMvp.View> implements OfferDetailsPdfMvp.Presenter<OfferDetailsPdfMvp.View> {
}

But I get compile error: Can not resolve symbol MvpQueuingBasePresenter

sockeqwe commented 6 years ago

Sorry, the Readme is not up-to-date. You have to add this dependency :

com.hannesdorfmann.mosby3:mvp-queuing-presenter:3.1.0

Btw. You better use 3.1.0 (not SNAPSHOT). Also there is no need to include mvi if you are just doing mvp.