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

引入工程后不能识别godeye #18

Closed
testerclub opened this issue Feb 8, 2018 · 5 comments
Closed

引入工程后不能识别godeye #18

testerclub opened this issue Feb 8, 2018 · 5 comments

Comments

@testerclub
Copy link

引入工程后,报godeye相关的class不能识别,不知道哪里姿势不对。这些install的class都是红色
GodEye.instance().install(Cpu.class, new CpuContextImpl())
.install(Battery.class, new BatteryContextImpl(this))
.install(Fps.class, new FpsContextImpl(this))
.install(Heap.class, Long.valueOf(2000))
.install(Pss.class, new PssContextImpl(this))
.install(Ram.class, new RamContextImpl(this))
.install(Sm.class, new SmContextImpl(this, 1000, 300, 800))
.install(Traffic.class, new TrafficContextImpl())
.install(Crash.class, new CrashFileProvider(this))
.install(ThreadDump.class, new ThreadContextImpl())
.install(DeadLock.class, new DeadLockContextImpl(GodEye.instance().getModule(ThreadDump.class).subject(), new DeadlockDefaultThreadFilter()))
.install(Pageload.class, new PageloadContextImpl(this))
.install(LeakDetector.class, new LeakContextImpl2(this, new PermissionRequest() {
@OverRide
public Observable dispatchRequest(Activity activity, String... permissions) {
return new RxPermissions(activity).request(permissions);
}
}));

@Kyson
Copy link
Owner

Kyson commented Feb 8, 2018

使用了哪个版本?

@testerclub
Copy link
Author

1.7.3

@testerclub
Copy link
Author

是不是我引入的方式不对,我是严格按照md文档里引入的

@Kyson
Copy link
Owner

Kyson commented Feb 9, 2018

@testerclub 你可以看下demo的接入:https://github.com/Kyson/AndroidGodEyeDemo

@Kyson Kyson closed this as completed Feb 9, 2018
@testerclub
Copy link
Author

好的,谢谢
建议大神建一个Androidgodeye QQ群吧

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