Skip to content

Android Studio开发工具篇 #24

@ProZoom

Description

@ProZoom

依赖方式

1.Compile 

compile是对所有的build type以及favlors都会参与编译并且打包到最终的apk文件中。

2.Provided 

Provided是对所有的build type以及favlors只在编译时使用,类似eclipse中的external-libs,只参与编译,不打包到最终apk。

3.APK 

只会打包到apk文件中,而不参与编译,所以不能再代码中直接调用jar中的类或方法,否则在编译时会报错
4.Test compile 
Test compile 仅仅是针对单元测试代码的编译编译以及最终打包测试apk时有效,而对正常的debug或者release apk包不起作用。

5.Debug compile 

Debug compile 仅仅针对debug模式的编译和最终的debug apk打包。

6.Release compile 

Release compile 仅仅针对Release 模式的编译和最终的Release apk打包。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions