问题
I developed android library and I tried import this library in other app "compileOnly"
dependencies {
compileOnly 'xxx.xxx.xxx:xx-xx-xx:1.0'
}
but gradle show me:
"Android dependency 'xxx-xxx-xxx:xx-xx-xx:1.0' is set to compileOnly/provided which is not supported"
Any idea?
回答1:
Android dependencies (AARs) can provide resources such as drawables and layout files that must be available in the build output. A compileOnly
/provided
dependency is not included in the build output, and thus the two are not compatible.
来源:https://stackoverflow.com/questions/47818001/import-my-library-in-app