android - 在 Android Studio 中导入库项目

标签 android import android-studio library-project

我正在尝试导入 this android 库项目从 Android Studio(0.2.5,gradle 1.7)进入我的应用程序,但无论我尝试什么,我总是会遇到一些错误。

我主要尝试从这个 post 中获得投票最多的答案,(我什至从头开始尝试使用 HelloWord 项目和 actionbarsherlock)但最后我遇到了一些错误,比如

Gradle: A problem occurred evaluating project ':libraries:actionbarsherlock'.
> Gradle version 1.6 is required. Current version is 1.7

谁能帮帮我?能否将 filedialog 或 sherlock 库导入到 Android studio 项目中?

最佳答案

我解决了升级到 Android Studio 0.2.6 的问题。在这里,“新模块”问题已得到修复,因此您可以将新的库模块添加到您的项目中。然后,我将库项目复制到这个新模块中(手动添加 Activity 、文件、资源......),现在我有了一个工作的 gradle 项目。

我知道这有点棘手,但我必须让它成功!

关于android - 在 Android Studio 中导入库项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18446816/

相关文章:

python - Python 中的 importlib.reload() 和 exec()

java - 尽管添加到 View 中, fragment 仍未显示

python - 如何使用 py.test 正确导入包?

php - Android中C2DM的一些查询

java - Twitter linkify android 所有@mentions

java - 使 ListView 接收我正在使用 fragment 的两个文本

csv - 如何从文本文件填充 Elasticsearch 索引?

Android Studio - 无法完成 Gradle 执行 - getPid()

android - 错误 :Execution failed for task ':app:processDebugGoogleServices' - com. google.android.gms

android - ListView 没有显示在 fragment 中?