[英]Android Studio: how to import Android library project
I'm using Android Studio and I've never imported or referenced any external libraries before. 我正在使用Android Studio,之前我从未导入或引用过任何外部库。
The library I'm trying to reference is this: https://code.google.com/p/afiledialog/ 我试图引用的库是这样的: https : //code.google.com/p/afiledialog/
I went to File - Project Structure - Modules and added a new Module pointing to this project library. 我去了File - Project Structure - Modules并添加了一个指向这个项目库的新模块。 After that I have no idea how to get it to work in my app, and when following the basic info on the main page it asks me to add this to my manifest file:
之后,我不知道如何让它在我的应用程序中工作,并且当在主页上关注基本信息时,它要求我将其添加到我的清单文件中:
<activity android:name="ar.com.daidalos.afiledialog.FileChooserActivity" />
However when I do that it reports that it cant find the package FileChooserActivity. 但是,当我这样做时,它报告它无法找到包FileChooserActivity。
All help is appreciated. 所有帮助表示赞赏。
EDIT: Here are the main errors: 编辑:以下是主要错误:
Gradle: package ar.com.daidalos.afiledialog does not exist
Gradle: cannot find symbol class FileChooserDialog
Gradle: cannot find symbol class FileChooserDialog
Go back to Project Structure
window where you added the new module. 返回“
Project Structure
窗口,您可以在其中添加新模块。 Click on your main module, go to Dependencies
tab, click the plus icon and select Module Dependency
. 单击主模块,转到
Dependencies
选项卡,单击加号图标,然后选择Module Dependency
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.