Android dependencies : apklib vs aar files

后端 未结 1 1842
走了就别回头了
走了就别回头了 2021-02-07 00:35

From my understanding, apklib contains code + resource shared with Maven . aar files are distributed by Gradle.

The

相关标签:
1条回答
  • 2021-02-07 01:01

    1 Can somebody explain the main differences between apklib vs aar files ?

    Couple differences that come to my mind, in addition to the ones you mentioned

    1. aar doesn't contain source code
    2. aar can contain custom proguard file and custom lint rules

    2 Can Maven use aar ? Can Gradle use apklib ?

    The Android Maven Plugin supports aar since version 3.7.0. Gradle doesn't support using apklib dependencies but you could export your android-library as apklib (see this post).

    0 讨论(0)
提交回复
热议问题