我想在我的项目中使用这个 ArcMenu View :
通常,我复制并粘贴
compile 'com.example.library'
进入我的build.gradle
文件。这个库在使用情况下没有这样的东西。用法让我感到困惑:
$ android update project --library ../relative/path/to/the/library --path .
在这种情况下,我应该如何包含和使用这个库?我必须自己弄清楚编译'com.example.library'吗?
对不起我的无知。我对 gradle 了解不多,而且我是新手。我很感激任何帮助! :)
最佳答案
短版 : 只需导入 library
文件夹作为项目中的模块,并通过项目结构选项添加为依赖项。
加长版 :
build.gradle
下应用程序 dependencies {
compile project(':library')
...
}
或转到
Project Structure > app > Dependency Tab> Click on
+
to addmodule
dependency > chooselibrary
更新
根据您的评论
build.gradle
应该是这样的这是
compileSdkVersion
设置为 4,因为它应该设置为您的应用程序中的任何内容,在我的情况下它是 23
.同时更新buildToolsVersion
.更新
build.gradle
的library
模块如下Working demonstration app on github.
关于android - 当使用中没有 gradle 编译时,如何在我的项目中使用此 ArcMenu 库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35837928/