How to add dependency (.jar .aar) in Android Studio

Spinach Labs · 75K views · 2015 · 2:55

Open on YouTube

Software (other)Testing, debugging & developer toolstutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as a quick visual walkthrough of importing .jar and .aar files into Android Studio, usually when answering or asking about adding third-party libraries.

Recommended by 0 people across 0 different months, 2015 to 2016.

What it is

A short screencast from Spinach Labs showing how to add an external .jar or .aar library to an Android Studio project. It walks through the IDE's import-module steps rather than editing Gradle by hand.

What people said

Cites Beren · 2015-08 · Stack Overflow · on “Sending automated email issues Android”

I'm trying to write an app that will send an automated email from a button push in an Android application. I realize this question has been asked multiple times, but I still have not found a final solution for it for my case. The code example I followed came from here: [LINK] The GMailSender class is exactly the same. So is the MainActivity class except I use my own email to test that it is sending properly. The two main questions I have looked at are the following: Android sending emails java.lang.NoClassDefFoundError: javax.activation.DataHandler [LINK] java.lang.NoClassDefFoundError: javax.activation.DataHandler in android [LINK] I have all three files (activation.jar, additionnal.jar, ma

Cites Muhammad Waleed · 2015-09 · Stack Overflow · on “How to add third-part library with javadoc to gradle build script for Android?”

In summary; -> new -> module -> import jar/AAR package -> import select the jar file to import -> click ok -> done For more info, please follow this link this link click [LINK] , or [this video]

Cites Zorak · 2015-12 · Stack Overflow · on “Android - connect to MySQL”

I know, there will be duplicates on this topic, but solutions I found were like 2 years old, and not working for me, so thats why I am asking for topic update. Question is simple: How to connect my Android device to MySQL database? I have followed this old topic from Feb 2013 (ofc with a comparsion to other related topics, which were actually almost the same). [LINK] I have found library from the solution, the mysql-connector-java-3.0.17-ga-bin.jar After beeing not succesfull, I also tried newer version of this library, mysql-connector-java-5.1.23-bin.jar Both libraries were added to project following this video-guide: [this video] And now my personal solution: I have 4 fields in Main Activity, f

Cites Zax · 2016-05 · Stack Overflow · on “Update OpenTok SDK in Android Application”

I have a currently running Android application which uses OpenTok SDK version 2.8. that is 'opentok-android-sdk-2.5.0.jar' . Due to some known issue, i have to update it to the latest version of OpenTok that is opentok-android-sdk-2.8.1 . In the previous version of the OpenTok SDK, there used to be one *.jar file and two *.so files. However, in this version the *.jar and *.so files have been replaced by a single *.aar file. What i tried: I removed both *.so files fron JNILibs directory and the *.jar file from the libs directory of the project structure. Further i removed the below line from gradle.build of apps: compile files('libs/opentok-android-sdk-2.5.0.jar') As specified in the below li

Critical Tony Smith · 2015-03 · Stack Overflow · on “Android cannot find method from JAR on runtime”

I've been working on an app that uses AES encryption which requires a JAR for Base 64 encoding and decoding. I followed this tutorial this [this video] on importing a JAR (could be my issue since seems like they have no idea what they are doing). The line by line compilation is happy but upon runtime on the phone I get the error message Could not find method org.apache.commons.codec.binary.Base64.decodeBase64, referenced from method com.login.tools.Encoder.decrypt My Application gradle script does have reference to the JAR compile project(':commons-codec-1.10') Which should call the commons-codec-1.10 gradle script configurations.create("default") artifacts.add("default", file('commons-codec-1.10