2017-02-27 100 views
-1

如何安装材料抽屉库我尝试使用这种方法,但不起作用如何安装MaterialDrawer库在Android Studio中

我使用文件>新建>新建模块>导入摇篮项目>选择我的源目录>导入应用/库>完成 enter image description here

enter image description here

enter image description here

但我仍然有错误

Error:(9, 0) Could not find method compile() for arguments [com.mikepenz:materialdrawer:[email protected], bu[email protected]dd62d82] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

是否我的方法不正确或者我做错了?

+0

我想你想要导入的是库的样本,给该项目内的库模块的路径。或者,如果提供的是Gradle文件,则应该使用@aar依赖关系,而不是模块。 – Harry

回答

0

关注这个:

文件 - >新建 - >导入模块

选择库路径和完成。

相关问题