How to introduce aar File in Android Studio
Editor to share with you how to introduce aar files in Android Studio, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
How to introduce aar files in Android Studio?
Take the aar file of RecyclerView as an example.
1. Find the aar file:..\ Android_SDK_Windows\ extras\ android\ m2repository\ com\ android\ support\ recyclerview-v7\ 24.0.0\ recyclerview-v7-24.0.0.aar
Copy to the libs directory in the Android Studio project.
2. Then enter the following in the build.gradle file of module corresponding to Android Studio:
Dependencies {... Compile (name:'recyclerview-v7-24.0.0)} repositories {flatDir {dirs' libs'}}
3. Then re-build the whole project.
The above is all the contents of the article "how to introduce aar files in Android Studio". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!