3rdLib2Depend | # # # Android Studio 生成aar/jar并导入Android Studio工程中

 by   ZQiang94 Java Version: Current License: No License

kandi X-RAY | 3rdLib2Depend Summary

kandi X-RAY | 3rdLib2Depend Summary

3rdLib2Depend is a Java library. 3rdLib2Depend has no bugs, it has no vulnerabilities, it has build file available and it has low support. You can download it from GitHub.

###Android Studio 生成aar/jar并导入Android Studio工程中. ####aar&jar aar与jar不同,不像是jar里面只有class文件一样,还有so文件,资源文件和第三方库文件等等,其实就是一个压缩文件。 ####生成jar-使用gradle task来生成一个jar文件 在module的build.gradle文件中创建任务,如图: 具体代码:. sync(同步)完之后,使用命令行或者使用可视化gradle task来执行上面创建的任务(makeJar)。 使用可视化任务列表更为可观 到build/libs/中查看生成的jar 这个jar就是执行task之后生成的指定name的jar,可以直接使用。下面就是如何使用这个jar。 ####导入jar 1.拷贝到工程的libs目录; 2.build.gradle中的依赖添加 compile files('libs/mysdk.jar')。 使用可视化工具也可。 ####生成aar 要生成 aar 文件,必须将 Module 配置为 library,在 gradle 文件中注明: apply plugin: 'com.android.library';如图: 要想apply plugin为library,可以创建Android Library,也可以手动修改apply plugin:为library,一般采用前者方式。 sync之后,在outputs文件夹下会生成相应的aar文件,比jar的方式要简单,不需要创建任务。 ####导入aar 与添加jar类似,首先要拷贝到libs目录下,然后在工程的build.gradle文件中添加依赖,与jar稍有不同的先要添加库,如图, ,然后在依赖中添加该aar文件. 其中selflibrary-release要与你的libs下的aar文件名称一致。 ####小结 Gradle 的一些基本依赖配置方式如下: compile fileTree(dir: 'xxx', include: ['.jar', ".xxx"]):将某个目录下所有符合扩展名的文件作为依赖; compile 'com.xx.xx:ProjectName:Version':配置Maven` 库作为依赖;在 Maven 库中心 可以搜索自己想用的库进行依赖; compile project(':AnotherModule'):配置另一个 Module 作为本 Module 的依赖,被依赖的 Module 必须被导入到当前工程中; compile files('xxx.jar'):配置某个 jar 包作为依赖。 aar : apply plugin: 'com.android.library'; apk :apply plugin: 'com.android.application'.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              3rdLib2Depend has a low active ecosystem.
              It has 13 star(s) with 4 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              3rdLib2Depend has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of 3rdLib2Depend is current.

            kandi-Quality Quality

              3rdLib2Depend has no bugs reported.

            kandi-Security Security

              3rdLib2Depend has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              3rdLib2Depend does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              3rdLib2Depend releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed 3rdLib2Depend and discovered the below as its top functions. This is intended to give you an instant insight into 3rdLib2Depend implemented functionality, and help decide if they suit your requirements.
            • Called when the activity is created
            • Convert a date to string
            • Get date
            • Displays a long long
            • Convert a date to a Date
            • Convert date to string
            • Show a toast
            • Shows a short message
            Get all kandi verified functions for this library.

            3rdLib2Depend Key Features

            No Key Features are available at this moment for 3rdLib2Depend.

            3rdLib2Depend Examples and Code Snippets

            No Code Snippets are available at this moment for 3rdLib2Depend.

            Community Discussions

            No Community Discussions are available at this moment for 3rdLib2Depend.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install 3rdLib2Depend

            You can download it from GitHub.
            You can use 3rdLib2Depend like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the 3rdLib2Depend component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/ZQiang94/3rdLib2Depend.git

          • CLI

            gh repo clone ZQiang94/3rdLib2Depend

          • sshUrl

            git@github.com:ZQiang94/3rdLib2Depend.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Java Libraries

            CS-Notes

            by CyC2018

            JavaGuide

            by Snailclimb

            LeetCodeAnimation

            by MisterBooo

            spring-boot

            by spring-projects

            Try Top Libraries by ZQiang94

            DisplayInfo

            by ZQiang94Java

            JSInteractsWithNative

            by ZQiang94Java

            DashedLine

            by ZQiang94Java

            photoOrlocal

            by ZQiang94Java

            SweetRuler

            by ZQiang94Java