Open pavelpoley opened 5 years ago
Don't mix dependencies, add only moxy-x or moxy
if i add only
implementation 'tech.schoolhelper:moxy-x-androidx:1.7.0'
all classes related to presenters not found
Use should also use custom Moxy https://github.com/schoolhelper/MoxyX
This worked for me
that works on my Android-x project ($versions.moxy = 1.7.0):
implementation "tech.schoolhelper:moxy-x:$versions.moxy"
implementation "tech.schoolhelper:moxy-x-android:$versions.moxy"
annotationProcessor "tech.schoolhelper:moxy-x-compiler:$versions.moxy"
You can solve the problem by don't add implementation "com.arello-mobile:moxy-app-compat:$moxy" to your project but instead of this you can create your class com.arellomobile.mvp.MvpAppCompatActivity with the code from this repository but with the dependency on androidX and use it as well. Here is come a couple of code:
package com.arellomobile.mvp;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
@SuppressWarnings("unused")
public class MvpAppCompatActivity extends AppCompatActivity {
private MvpDelegate<? extends MvpAppCompatActivity> mMvpDelegate;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getMvpDelegate().onCreate(savedInstanceState);
}
this works on my Android-x project
implementation 'tech.schoolhelper:moxy-x:1.7.0'
implementation 'tech.schoolhelper:moxy-x-androidx:1.7.0'
kapt 'tech.schoolhelper:moxy-x-compiler:1.7.0'
Hi, all Check a new version of moxy [https://github.com/moxy-community/Moxy](New Moxy).
This repo and repo of tech.schoolhelper are not up to date.
I started AndroidX project, i am using this dependencies:
but in build process getting this error:
How to resolve this errors?