Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry pick 'Fix ActivityInvoker$-CC class not found errors' to axt_2024_05_14_stable_release_branch #2267

Conversation

brettchabot
Copy link
Collaborator

Builds using ActivityScenario with older androidx.test.core:1.5.X but the latest androidx.test:monitor:1.7.X will see ActivityInvoker$-CC class not found errors. This is because androidx.test.core:1.5.X effectively depends on internal classes generated by the desugaring tool.

The latest androidx.test toolchain generates java8 bytecode and no longer generates these desugared classes.

To fix the backwards compatibility issues, this commit introduces a placeholder class ActivityInvokerDesugar that gets renamed to the missing ActivityInvoker$-CC class at build time.

Fixes #2259.

Builds using ActivityScenario with older androidx.test.core:1.5.X
but the latest androidx.test:monitor:1.7.X will see ActivityInvoker$-CC
class not found errors. This is because androidx.test.core:1.5.X effectively
depends on internal classes generated by the desugaring tool.

The latest androidx.test toolchain generates java8 bytecode and no longer
generates these desugared classes.

To fix the backwards compatibility issues, this commit introduces
a placeholder class ActivityInvokerDesugar that gets renamed to the missing
ActivityInvoker$-CC class at build time.

Fixes #2259.
@brettchabot brettchabot merged commit 4e9874a into axt_2024_05_14_stable_release_branch Aug 13, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants