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

非androidX接入报错 #9

Closed
boatt opened this issue Aug 12, 2020 · 3 comments
Closed

非androidX接入报错 #9

boatt opened this issue Aug 12, 2020 · 3 comments
Labels
wontfix This will not be worked on

Comments

@boatt
Copy link

boatt commented Aug 12, 2020

Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy
Error: Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy

@AndroidInternal
Copy link
Contributor

监听前后台事件时用了一个androidx的包

api 'androidx.lifecycle:lifecycle-extensions:2.2.0'

目前不计划支持support的包,短期看只能依赖源码改了。

这里:

public interface KTrigger extends LifecycleObserver {

@AndroidInternal AndroidInternal added the wontfix This will not be worked on label Aug 12, 2020
@lushang1geren
Copy link

s

监听前后台事件时用了一个androidx的包

api 'androidx.lifecycle:lifecycle-extensions:2.2.0'

目前不计划支持support的包,短期看只能依赖源码改了。

这里:

public interface KTrigger extends LifecycleObserver {

你现在解决了吗?用啥方法解决的

@alhah
Copy link
Member

alhah commented Aug 18, 2020

换成android.arch.lifecycle.LifecycleObserver,删掉androidx的依赖重新编译。主流开源项目都在向androidx迁移,我们目前不计划支持老的support包。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants