RocooFix
RocooFix copied to clipboard
能够生成patch.jar,但是重启app后修改不生效
能够生成patch.jar,但是把patch.jar导入真机的内置存储卡后,重启app,修改不生效 为什么会出现这种现象
String path = Environment.getExternalStorageDirectory()+"/patch.jar"; //从指定目录加载补丁 RocooFix.applyPatch(this,path);
android { compileSdkVersion 24 buildToolsVersion "24.0.1"
defaultConfig {
applicationId "com.study.testrocoofix"
minSdkVersion 15
targetSdkVersion 24
versionCode 2
versionName "1.0"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
rocoo_fix {
includePackage = ['com/study/testrocoofix']
excludeClass = ['RocooApplication.class','HotFixManger.class']
preVersionPath = '1'//注意:此项属性只在需要制作补丁的时候才需开启!!如果不需要制作补丁则需要去掉此项
enable = true//注意:关掉此项会无法生成Hash.txt文件
scanref = true;
}
}
你加读取存储的权限了么
问一下 这个问题解决了吗?也遇到同样的问题