You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 25, 2024. It is now read-only.
若有一个activity类需要修复,尝试dx打包之后修复的代码(模拟修复了按钮点击事件中为btn设置的文本和toast的文本)无效,并且反编译之后的代码和 apk原来的代码反编译只有有很大差异,为什么?大家遇到过吗?
dx手工打包反编译得:
package dodola.hotfix;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
public class LoginActivity extends Activity
{
protected void onCreate(Bundle paramBundle)
{
super.onCreate(paramBundle);
setContentView(2130968601);
Button localButton = (Button)findViewById(2131492975);
LoginActivity.1 local1 = new LoginActivity.1(this, localButton);
localButton.setOnClickListener(local1);
}
}
apk反编译得:
package dodola.hotfix;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;
public class LoginActivity extends Activity {
public LoginActivity() {
}
}