Closed dropperY closed 6 years ago
@dropperY 试试0.4.9版本呢?
我也一样的报这个错误,很简单的一个测试。
@Override @Modify protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); version = (TextView) findViewById(R.id.showVersion); version.setText("这是我的第一个版本"); btn = (Button) findViewById(R.id.test); init(); version.setText(getNewStringData()); }
private void init() {
btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (isGrantSDCardReadPermission()) {
loadPath();
} else {
requestPermission();
}
}
});
}
@Add
public String getNewStringData(){
return "HotFix Robust";
}
demo可以发给我们看看吗?
2017年10月23日 14:18,"BeanChan1987" notifications@github.com写道:
@override https://github.com/override @modify https://github.com/modify protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); version = (TextView) findViewById(R.id.showVersion); version.setText("这是我的第一个版本"); btn = (Button) findViewById(R.id.test); init(); version.setText(getNewStringData()); }
private void init() { btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if (isGrantSDCardReadPermission()) { loadPath(); } else { requestPermission(); }
} });
}
@Add public String getNewStringData(){ return "HotFix Robust"; }
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Meituan-Dianping/Robust/issues/195#issuecomment-338557985, or mute the thread https://github.com/notifications/unsubscribe-auth/AHgyAXIkDVHl90H26JF85BVrPhxWgmwaks5svC-WgaJpZM4PSy0m .
demo可以发给我们看看吗? 2017年10月23日 14:18,"BeanChan1987" notifications@github.com写道: … @override https://github.com/override @modify https://github.com/modify protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); version = (TextView) findViewById(R.id.showVersion); version.setText("这是我的第一个版本"); btn = (Button) findViewById(R.id.test); init(); version.setText(getNewStringData()); } private void init() { btn.setOnClickListener(new View.OnClickListener() { @override public void onClick(View view) { if (isGrantSDCardReadPermission()) { loadPath(); } else { requestPermission(); } } }); } @add public String getNewStringData(){ return "HotFix Robust"; } — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#195 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AHgyAXIkDVHl90H26JF85BVrPhxWgmwaks5svC-WgaJpZM4PSy0m .
我就不明白了,我现在也是0.4.9,和上面一样的错误,也只是简单修改了,我刚提的issue。根本没解决你close掉?
demo可以发给我们看看吗? 2017年10月23日 14:18,"BeanChan1987" notifications@github.com写道: … @override https://github.com/override @modify https://github.com/modify protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); version = (TextView) findViewById(R.id.showVersion); version.setText("这是我的第一个版本"); btn = (Button) findViewById(R.id.test); init(); version.setText(getNewStringData()); } private void init() { btn.setOnClickListener(new View.OnClickListener() { @override public void onClick(View view) { if (isGrantSDCardReadPermission()) { loadPath(); } else { requestPermission(); } } }); } @add public String getNewStringData(){ return "HotFix Robust"; } — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#195 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AHgyAXIkDVHl90H26JF85BVrPhxWgmwaks5svC-WgaJpZM4PSy0m .
我就不明白了,我现在也是0.4.9,和上面一样的错误,也只是简单修改了,我刚提的issue。根本没解决你close掉?
老问题了 我也出现了 0.4.99版本
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
一个简单的修复demo报错
就是简单修改了fuckB方法,并且新加了个fuckC方法替换了fuckD,加载补丁时找不到fuckC 修改内容,
下面是我用jadx看到的补丁内相关代码
堆栈/日志:
异常类型:app运行时异常
手机型号:如:Nexus 5
手机系统版本:如:Android 7.0
Robust版本:如:0.4.7
Gradle版本:如:2.3.3
系统:如:Mac