简体   繁体   中英

How to include runtimeOnly dependency in a Library project which will be consumed as aar in my Application

I want to include runtimeOnly dependency in an android library project, which has to be consumed by android app project. Now, when i declare runtimeOnly in android library project. Those dependencies are not available as part of apk

You are using implementation or api ?

According to your description you should use api in your library project, api will expose the dependency to the consumer in your situation consumer is your app project.

Here is the duplicate question this may help you. Answer1 Answer2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM