问题描述
我使用Robolectric不使用Maven构建,这意味着我现在用的是Robolectric与 - 依赖罐。
I am using Robolectric without using maven to build, meaning I am using the Robolectric-with-dependencies Jar.
我将它设置基础上Robolectric的现场指导,但我仍然得到了警告:无法找到路径到Android SDK的错误,我发现的(第一个答案)。
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.
推荐答案
请务必将 ANDROID_HOME
环境变量指向你的Android SDK安装,如:
make sure to set the ANDROID_HOME
environment variable to point to your Android SDK installation, e.g.:
export ANDROID_HOME=/usr/local/Cellar/android-sdk/r15
这篇关于Robolectric"警告:无法找到Android SDK中&QUOT路径;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!