1,z自定义application ,在清单文件中声明
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
// 这里实现SDK初始化,appId替换成你的在Bugly平台申请的appId
// 调试时,将第三个参数改为true
Bugly.init(this, "fab2c2c3cc", true);
//设置开发设备
Bugly.setIsDevelopmentDevice(this, true);
}
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
// you must install multiDex whatever tinker is installed!
MultiDex.install(base);
// 安装tinker
Beta.installTinker();
}
}
2,补丁包下发之后,需要等几分钟或者关闭App,才能生效。