Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
millylly opened this issue Aug 11, 2016 · 2 comments
Open

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

millylly opened this issue Aug 11, 2016 · 2 comments

Comments

@millylly
Copy link

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

}

@NaibManco
Copy link

你加读取存储的权限了么

@alittlecup
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants