gradle - Unable to compile transitive dependency of aar from android project -
there questions regarding transitive dependencies in gradle none of them solved problem.
i took following steps:
- created new android studio project: a.
- created new "android library" module: b in project.
added dependency in build.gradle of module b as:
compile ('com.abc:sdk:0.8.0@aar')
added dependency in app level build.gradle as:
compile project(":b")
after step android studio automatically generated aar file b.
created android studio project: b , imported aar file module in project.
everything working fine in project a. getting
noclassdeffounderror
when try run project b.
explicitly adding dependency of abc:sdk in project b solves problem purpose compile abc:sdk without explicitly adding dependency project b.
the aar file doesn't contain transitive dependencies.
it means that, if importing aar file, have specify dependencies in project.
using maven repository, not have same issue. gradle downloads dependencies using pom file.
Comments
Post a Comment