java.lang.NoSuchMethodError: No virtual method getResources()
- Dominant language
- C++
- Stars
- 7k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
java.lang.NoSuchMethodError: No virtual method getResources()Landroid/content/res/Resources; in class Lcom/lxm/ss/main/MainActivity_CF; or its super classes (declaration of 'com.lxm.ss.main.MainActivity_CF' appears in /data/data/com.lxm.ss/files/apatch/lxm_ss.apatch)
at com.lxm.ss.main.MainActivity_CF.onClick(Unknown Source)
at com.lxm.ss.main.MainActivity_ViewBinding$1.doClick(Unknown Source)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
at android.view.View.performClick(View.java:5155)
at android.view.View$PerformClick.run(View.java:20747)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5835)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
这个资源没有改动怎么会找不到呢
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported NoSuchMethodError from MainActivity_CF.onClick and inspect the generated patch at /data/data/com.lxm.ss/files/apatch/lxm_ss.apatch, along with the MainActivity_ViewBinding and DebouncingOnClickListener stack entries. No repository source file or test is identified; done means determining why getResources() is missing and documenting or implementing a verified fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100