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

4.0.0 的 BaseActivity 还是 V7 包 #102

Open
yuandoudou928 opened this issue Apr 2, 2022 · 2 comments
Open

4.0.0 的 BaseActivity 还是 V7 包 #102

yuandoudou928 opened this issue Apr 2, 2022 · 2 comments

Comments

@yuandoudou928
Copy link

import android.support.v7.app.AppCompatActivity;
import com.trello.rxlifecycle2.LifecycleProvider;
import com.trello.rxlifecycle2.LifecycleTransformer;
import com.trello.rxlifecycle2.RxLifecycle;
import com.trello.rxlifecycle2.android.ActivityEvent;
import com.trello.rxlifecycle2.android.RxLifecycleAndroid;
import io.reactivex.Observable;
import io.reactivex.subjects.BehaviorSubject;

public abstract class RxAppCompatActivity extends AppCompatActivity implements LifecycleProvider {

@redahlia
Copy link

有解决吗?我也是这个问题

@redahlia
Copy link

在gradle.properties当中增加
android.useAndroidX=true
android.enableJetifier=true
再添加v7的包
让项目同时支持support 和 androidX

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