关于Android studio中生成aar文件 从studio中打开项目工程,三步就可以完成。 目录 关于Android studio中生成aar文件 1.修改Gradle配置文件 2.打开Terminal终端输入命令 3.在工程文件下 1.修改Gradle配置文件 如下: apply plugin: 'com.android.library' buildTypes { release { minifyEnabled true zipAlignEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'