0

I'd like to write unit tests for classes of an Android application. I found that it is faster to run the test cases on my PC. I created a separate Java project and put my classes and test cases into that project. The packages of this project is used from my Android application.

This works for my classes that don't use Android classes. Is there a way to use the classes of the Android Library in this project? So that I could run the unit tests on my PC?

1 Answer 1

1

Include android.jar from the SDK in your classpath.

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

1 Comment

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.