RocooFix icon indicating copy to clipboard operation
RocooFix copied to clipboard

能够生成patch.jar,但是重启app后修改不生效

Open millylly opened this issue 8 years ago • 2 comments

能够生成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;
}

}

millylly avatar Aug 11 '16 03:08 millylly

你加读取存储的权限了么

NaibManco avatar Aug 17 '16 09:08 NaibManco

问一下 这个问题解决了吗?也遇到同样的问题

alittlecup avatar Nov 18 '16 12:11 alittlecup