I am using Robolectric without using maven to build, meaning I am using the Robolectric-with-dependencies Jar.
I set it up based on instructions on Robolectric’s site, yet I am still getting the WARNING: Unable to find path to Android SDK” error. I found this link (the first answer) which mentions where the problem is coming from but doesn’t answer how I can fix this problem.
I am new and never posted because I can usually find a solution after browsing for awhile, however I had no luck finding the solution. Anything would help. Thanks.
make sure to set the
ANDROID_HOMEenvironment variable to point to your Android SDK installation, e.g.: