Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • I'm not sure how the mentioned code produced MockView cannot be cast to android.view.ViewGroup please show the code that uses a mocking library Commented Jul 17, 2016 at 17:13
  • Also, you should use Gradle dependencies rather than jar files. Less problems will arise Commented Jul 17, 2016 at 17:14
  • did you added the jar file to compile in gradle dependency Commented Jul 17, 2016 at 17:17
  • I am using Eclipse for development Commented Jul 17, 2016 at 17:32