Android and Junit (adding new run configuration gives “argument error”)

So eclipse is throwing out a ugly error that has no meaning. “Argument error, details saved in some hs_#@#$@@.log” file. Dead irritating.

I am sure you tried what I did, added a junit4 (or 3 for that matter) java file, for testing your app. And tried to create a run configuration, using Android Junit Loader. Well, I did the same. For some reason, if you have your test java file as part of your android project it does not work.

To fix it, create a Android-Junit-Project, and move your files here. Dont forget to mark client as a dependent project on your new android junit project.

This will work.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s