Why is it so hard to import libraries in Android development (Android Studio)?
-
I've spent hours trying to figure out how to simply import an Android library hosted on Github into my project. It's a nightmare with so many weird configurations I have to set and mysterious tribal knowledge on where to put the library so that my project can use it. Why is this process so hard and frustrating? Doesn't this put Android at a significant disadvantage in the open-source community? Why make code hard to share? For contrast, including a ruby library into my ruby application is as simple as adding a dependency to my Gemfile, and running "bundle install". Boom, done.
-
Answer:
Well I think it is not that difficult to import compiled jar libaries into Android Studio (0.4.4) > Put the compiled .jar file into your application's /libs folder. > Edit build.gradle in your application's folder and insert "compile files ('src/main/libs/<your library.jar file')" into dependencies {} > Then run clean project and then re-build project
Sudara Madushan Fernando at Quora Visit the source
Related Q & A:
- what are the best advanced android development books?Best solution by Quora
- How to run Android Studio?Best solution by Stack Overflow
- How to add this library project to Android Studio?Best solution by Stack Overflow
- Why Gradle build is very slow for Android Studio?Best solution by Stack Overflow
- how to import cordova project to android studio?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.