Robolectric"警告:无法找到Android SDK中&QUOT路径; [英] Robolectric "WARNING: Unable to find path to Android SDK"

查看:221
本文介绍了Robolectric"警告:无法找到Android SDK中&QUOT路径;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用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 环境变量指向你的Andr​​oid 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路径;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆