connectedAndroidTest is broken on AGP 7.2
- Dominant language
- Kotlin
- Stars
- 203
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
After upgrading AGP from 7.1.2 to 7.2.2, `gradlew connectedAndroidTest` fails with the following errors.
```
com.linecorp.lich.component.ActivityTest > activityLazy[Pixel_5_API_32(AVD) - 12] FAILED
java.lang.RuntimeException: Unable to resolve activity for: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.linecorp.lich.component.test/com.linecorp.lich.component.ComponentTestActivity }
at androidx.test.core.app.InstrumentationActivityInvoker.startActivity(InstrumentationActivityInvoker.java:402)
Tests on Pixel_5_API_32(AVD) - 12 failed: There was 1 failure(s).
```
Contributor guide
Research direction
Start by running `gradlew connectedAndroidTest` with AGP 7.2.2 and compare the failure with AGP 7.1.2. Trace the `ComponentTestActivity` launch and the `activityLazy` test setup from the reported stack trace. Done means the connected Android tests resolve and launch the activity successfully on the Pixel 5 API 32 emulator.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- build-system, mobile, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100