android 解决app运行在4.4真机的解决办法

public class XXApp extends MultiDexApplication {
public static final int NETTYPE_WIFI = 0x01 ; //联网模式wifi
public static final int NETTYPE_CMWAP = 0x02 ; //联网模式CMWAP
public static final int NETTYPE_CMNET = 0x03 ; //联网模式CMNET
public static final int REFRESHITIME = 5000 ; //下拉刷新的间隔时间
public static final String SYS_EMUI = "sys_emui" ;
public static final String SYS_MIUI = "sys_miui" ;
public static final String SYS_FLYME = "sys_flyme" ;
修改父类
重写父类
// protected void attachBaseContext(Context base){
// MultiDex.install(base);
// }

app配置文件加上这两个
defaultConfig {
minSdkVersion 19
targetSdkVersion 23
multiDexEnabled true
}

compile "com.android.support:multidex:1.0.0"

你可能感兴趣的:(android 解决app运行在4.4真机的解决办法)