Android Studio: how to import an Android library project

I use Android Studio, and before that I had never imported or referenced any external libraries.

The library I'm trying to install is this: https://code.google.com/p/afiledialog/

I went to File - Project Structure - Modules and added a new module pointing to this project library. After that, I have no idea how to make it work in my application, and, following the basic information on the main page, he asks me to add this to the manifest file:

<activity android:name="ar.com.daidalos.afiledialog.FileChooserActivity" /> 

However, when I do this, it reports that it cannot find the FileChooserActivity package.

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 
+6
source share
1 answer

Return to the Project Structure window, where you added a new module. Click on your main module, go to the Dependencies tab, click the plus sign and select Module Dependency .

+7
source

Source: https://habr.com/ru/post/950589/


All Articles