I am a plugin developer, my plugin have dependency of two aar
libraries. When i am exporting as aar archive my dependent libraries not part of it.my project structure is like below mentioned
App
lib1
--aartool
lib2
lib3
lib1
has the dependency of lib2
, lib3
and aartool
files. App
has aar
dependency of lib1
.
Lib1
using some of the customized components from aartool
after that lib1
as converted to aar and used to application
.But, whatever file we accessed from aartool
which is not available in application
and throwing
classnotfoundException
Is there any way to implement these dependencies as aar
?
Always i need to carry lib1 aar to application, i don't want to carry all other dependencies.
I am not sure I understand it correctly, but I believe you just need to add transitive dependendcies like in this question or in this .
Example:
compile ('com.foo:FOO:1.0.0@aar'){
transitive=true
}
If you have circular dependencies you may encounter serious problems! I strongly recommend you to fix this.
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.