Gradle, Android and the ANDROID_HOME SDK location
2015-08-29 14:09
501 查看
http://stackoverflow.com/questions/19794200/gradle-android-and-the-android-home-sdk-location
up vote 41 down vote favorite 8 | we have this project with several modules that is already configured and executes correctly on another developer PC using a wrapper. I cloned the complete git submodules into my machine. Below it's a directly print of my command line: $ ./gradlew FAILURE: Build failed with an exception. * Where: Build file '/home/budius/project_name/ActionBar-PullToRefresh/library/build.gradle' line: 1 * What went wrong: A problem occurred evaluating project ':ActionBar-PullToRefresh:library'. > SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 6.378 secs $ echo $ANDROID_HOME /home/budius/Applications/android-studio/sdk $ so, as you can see the ANDROID_HOME is there. What else do they want? What's wrong here. running on Ubuntu 13.04 edit: I already created a local.properties file with sdk.dir=<path>on the project root and it works. But that makes the code harder to port across systems n build server, so the question is still open. Anyone knows why the ANDROID_HOME is not working and what to do to make it work? |
相关文章推荐
- 用Gradle 构建你的android程序
- Android RecyclerView 使用完全解析 体验艺术般的控件
- Android定义生命周期的优点
- XX日历简单逆向分析
- Android-Fragment的onActivity诡异Bug
- Android几个关于Gesture的问题
- Android Api Demos登顶之路(五十二)Search
- Android基础入门教程——5.2.2 Fragment实例精讲——底部导航栏的实现(方法2)
- Android-Fragment与Fragment之间数据获取
- Android Service与Thread详解
- Android ProgressBar自定义图片进度,自定义渐变色进度条
- Android文本输入框EditText属性和方法说明
- Android-Universal-Image-Loader学习笔记(一)
- Android实现将Drawable资源ID存储到Sdcard上
- [Android Studio] *.jar 与 *.aar 的生成与*.aar导入项目方法
- Android0828<十>(自定义的AlertDialog,Popup Window,Notification)
- Android在线切换主题(换肤),支持直接替换整个布局
- android java.lang.IllegalStateException异常产生的原因及解决办法 Offending field: mSpans
- android再按一次退出程序提示
- android开发网文搜集