import my library in app

╄→尐↘猪︶ㄣ 提交于 2019-12-11 19:27:22

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!