Vote count:
0
I'm starting to do some projects with this IDE and still I find several anoying situations that where very easy to solve with eclipse but that I don't know how to face here.
I'm implementing mail sending functionality to my app. This must be transparent for the user, so I'm using javax.mail.
For this, I have downloaded the "activation.jar", "additionnal.jar" and "mail.jar" files and I have save them in the libs folder.
Now I'm creating the custom sender class, which extendes javax.mail.Authenticator. But it does not find the import for the javax.mail, mail is appearing in red. I'm triying to import it from the libs but it does not find them.
I have also included this in gradle.build:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
I have readed in several questions like this, that the way is to right click on the library and click on Add as library, but this option is not appearing for me.
So, whats the way of making Android Studio recognize these libraries?
Android Studio external library
Aucun commentaire:
Enregistrer un commentaire