Compile jar file for dependencies in Android studio Build.gradle

Source: Internet
Author: User

1, after the download of the storage address

' com.qiniu:happy-dns:0.2.5 ' stored in:. Gradle\caches\modules-2\files-2.1\com.qiniu\happy-dns\0.2. 5\C0EE8266504682A0E500D95D849A5AF94A718DF1
Find the method:
1. Use Gd-gui to view jar files, jar files are generally C:\Users\. \.gradle\cache\. Here you can use Android Studio's own anti-compilation plug-in, specific installation methods, self-Baidu, Google.
2, first search out a Lib dependencies class name, and then select such a file, the upper left corner of this class will appear the full package path, select a display package directory switch, you can display the package subdirectory and class files.

2, the designated dependent files, where to download the

Example: Compile ' com.qiniu:happy-dns:0.2.5 '
com.qiniu:happy-dns:0.2.5 is a jar of seven cows, how does Android studio know about it, or where is it actually configured?
Download from the Jcenter Remote code repository; The jar provider is required to submit the jar package to the Jcenter (Gradle can be used in general), with reference to the following:
Http://www.jcodecraeer.com/a/anzhuokaifa/Android_Studio/2015/0227/2502.html

3, Gradle, dozen channels Package detailed description

1. Basic  1190000002439306
2, import 1190000002464822, Http://drakeet.me/android-studio have about importing remote Jar package Introduction
3. Pack 1190000004050697

Compile jar file for dependencies in Android studio Build.gradle

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.