Robust 是一款兼容性高、稳定性强的 Android HotFix 解决方案,可以立即修复 bug,无需重启。
Robust 是一个 Android HotFix 解决方案,兼容性高,稳定性强。Robust 可以立即修复 bug,无需发布 apk。
java 应用插件: 'com.android.application' 应用插件: 'auto-patch-plugin'
2. Put **mapping.txt** and **methodsMap.robust** which are generated when you build the apks in diretory **app/robust/**,if not exists ,create it!
3. After modifying the code ,please put annotation `@Modify` on the modified methods or invoke `RobustModify.modify()` (designed for Lambda Expression )in the modified methods:
```
java
@ 修改
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
//
protected void onCreate(Bundle savedInstanceState) {
RobustModify.modify()
super.onCreate(savedInstanceState);
}Use annotation `@Add` when you neeed to add methods or classes.
```
java //添加方法 @添加 public String getString() { return "健壮"; } //添加类 @添加 公共类 NewAddCLass { 公开静态字符串获取( ) { 返回“robust”; 返回“robust”; } {\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}你觉得呢
4. 完成这些步骤后,您需要运行与构建 apk 相同的 gradle 命令,然后会在 **app/build/outputs/robust/patch.jar** 目录中获得补丁。
5. 产生
[ ](https://bintray.com/meituan/maven/com.meituan.robust%3Apatch/0.4.99/link)
[中文说明](README-zh.md)暂无开放 Issues,或尚未同步最近议题。