The basic module shared by the koom monitoring function. Before all monitoring modules are initialized, please make sure that the module has been initialized
- Add mavenCentral to the repositories of the project root directory build.gradle
repositories {
mavenCentral()
}
- Add dependency in project app/build.gradle
dependencies {
implementation "com.kuaishou.koom:koom-monitor-base:${latest_version}"
}
- Initialize
MonitorManager
in theonCreate
method ofApplication
public class KOOMApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
DefaultInitTask.INSTANCE.init(this);
}
}