android / android/architecture-samples
cannot run the unit test in TODO-MVP
- Dominant language
- Kotlin
- Stars
- 45.8k
- Forks
- 11.9k
- PR merge metrics
- No merged PRs in 30d
Description
/* Remove this comment
todo-mvp
*/
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at com.example.android.architecture.blueprints.todoapp.util.AppExecutors.(AppExecutors.java:51)
at com.example.android.architecture.blueprints.todoapp.Injection.provideTasksRepository(Injection.java:41)
at com.example.android.architecture.blueprints.todoapp.taskdetail.TaskDetailActivity.onCreate(TaskDetailActivity.java:67)
at android.app.Activity.performCreate(Activity.java:5008)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
at android.support.test.runner.MonitoringInstrumentation.callActivityOnCreate(MonitoringInstrumentation.java:624)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
at android.app.ActivityThread.access$600(ActivityThread.java:130)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Test running failed: Instrumentation run failed due to 'java.lang.IllegalAccessError'
Contributor guide
Research direction
Start by reproducing the TODO-MVP test failure and read the stack trace from AppExecutors.java:51 through Injection.java:41 and TaskDetailActivity.java:67. Determine why the instrumentation run raises IllegalAccessError; done means the test runs without that failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100