0

I am looking at the source code for Glance Widgets on Android Code Search. I would like to replicate the code used for CheckBoxTest.kt but running into an issue. The problem is the code uses a version of GlanceAppWidget.kt which differs from GlanceAppWidget used in the official api release.

How can I replicate CheckBoxTest.kt in Android Studio so that it works with the Glance API provided in the official release.

For context, I am following the answer in this post.

1 Answer 1

1

All the code merged in androidx libraries is deployed into SNAPSHOT versions of the library. See https://androidx.dev/

That being said, there is code in the CheckBoxTest.kt that is only for testing so you would need to copy those classes.

Sign up to request clarification or add additional context in comments.

2 Comments

Is there any way to cleanly import the code into an Android Studio Project? I am getting infinite number of errors when I try manually copy and pasting in. Separate question raised here
I have raised another question on same topic here. Appreciate any help you may be able to offer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.