gradle provided和compile的区别在于:
1、compile:
假如你的jar包存在代码依赖性,在编译、运行时候需要依赖代码,那就用compile
2、provided:
假如你的jar包存在代码依赖性,但是只在编译的时候需要用,而运行时不需要,例如运行时会去使用机器中system/framework/中的jar,那就使用provided
gradle provided和compile的区别在于:
1、compile:
假如你的jar包存在代码依赖性,在编译、运行时候需要依赖代码,那就用compile
2、provided:
假如你的jar包存在代码依赖性,但是只在编译的时候需要用,而运行时不需要,例如运行时会去使用机器中system/framework/中的jar,那就使用provided