alibaba / alibaba/AndFix

java.lang.NoSuchMethodError:

Open
#312 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
7k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

最新的版本,老是各种不稳定,各种crash。
public class SettingActivity extends SlidingBackAcitivity {

@Override
protected void onCreate(Bundle arg0) {
super.onCreate(arg0);
setContentView(R.layout.account_setting_layout);
initView();
}

private void initView() {
initParma();

// 下面是新增的2行代码
int width = 4444;
Log.e("hotfix", "SettingActivity, width:" + width);
}

}

在nexus的6.0手机上面,就爆出andfix java.lang.NoSuchMethodError: No virtual method相关的crash;
而在oppo手机4.4版本上面,就会爆出 java.lang.NoSuchMethodError: Landroid/app/Activity;.getContentResolver的crash.

感觉兼容性不好,不稳定,无法在项目中使用最新的版本。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the SettingActivity snippet and reproduce the reported AndFix crashes on Android 6.0 and 4.4 devices, focusing on the two NoSuchMethodError messages shown. Trace the failing method lookup and verify that the compatibility problem is understood and no longer reproduces on both reported platform versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.