google / google/mobly-snippet-lib

got a crash on android R

Open
#107 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
44
Forks
25
PR merge metrics
No merged PRs in 30d

Description

_**here is the crash info**_
08-20 05:18:06.796 5560 5582 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/test/suitebuilder/annotation/Suppress;
08-20 05:18:06.796 5560 5582 E AndroidRuntime: at android.support.test.internal.runner.TestRequestBuilder.(TestRequestBuilder.java:83)
08-20 05:18:06.796 5560 5582 E AndroidRuntime: at android.support.test.internal.runner.TestRequestBuilder.(TestRequestBuilder.java:546)
08-20 05:18:06.796 5560 5582 E AndroidRuntime: at android.support.test.runner.AndroidJUnitRunner.createTestRequestBuilder(AndroidJUnitRunner.java:501)
08-20 05:18:06.796 5560 5582 E AndroidRuntime: at android.support.test.runner.AndroidJUnitRunner.buildRequest(AndroidJUnitRunner.java:476)
08-20 05:18:06.796 5560 5582 E AndroidRuntime: at android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:373)
08-20 05:18:06.796 5560 5582 E AndroidRuntime: at com.google.android.mobly.snippet.SnippetRunner.onStart(SnippetRunner.java:133)
08-20 05:18:06.796 5560 5582 E AndroidRuntime: at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2205)

**I traced the full method call stack and seeked some Info about _android.test.suitebuilder.annotation.Suppress_, the module _android.test_ has been removed in API LEVEL 28, I'am an backend developer shot of android application development, so, I wanna get some help on how make it work on Android 28+**

Contributor guide

Open the contributing guide

Research direction

Start with the AndroidJUnitRunner and TestRequestBuilder stack frames in the crash log, then verify how the library references android.test.suitebuilder.annotation.Suppress after its removal in API level 28. Reproduce on Android 28 or newer and identify a supported replacement or dependency update. Done means the snippet runner starts without the NoClassDefFoundError.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.