如何在android studio中安装MaterialDrawer库

时间:2017-02-27 05:16:32

标签: android android-studio

如何安装Material Drawer库我试过使用此方法但不能正常工作

我使用文件>新>新模块>导入Gradle项目>选择我的源目录>导入app / library>完 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:5.8.2@aar, build_baxn3lpydhn6fk3csutsz855j$_run_closure1$_closure3$_closure4@dd62d82] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

我的方法不正确还是我做错了?

1 个答案:

答案 0 :(得分:0)

按照:

file - > New - >导入模块

选择您的图书馆路径并完成。