You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary
aar libraries that are stored locally in the projects libs directory and are referenced as dependent aren't packaged in the final aar.
Example
If we reference a local aar library directly within the build.gradle files dependencies:
dependencies {
api (name: 'example-native-local-lib', ext: 'aar')
}
And within the sample file structure we have the below file: example-lib/libs/example-native-local-lib.aar
This library isn't included in the built aar.
Code
When the analyzeDependencies() method within CopyDependenciesTask.groovy detects an external dependency, it expects the dependant libraries path to be found at the following location: <gradleUserHomeDir>/caches/modules-2/files-2.1/
This is fine if the dependency has been downloaded from an external repository however
this isn't always the case (as demonstrated in the above example).
Thanks,
Jon
The text was updated successfully, but these errors were encountered:
Yep, you are right. Right now, I assume the same location for all dependencies because I can't find a correct way to determine if an artifact is from dependency manager (downloaded from internet) or it's stored locally on any location. Any suggestion?
jonbryantnz
added a commit
to jonbryantnz/fataar-gradle-plugin
that referenced
this issue
Jan 10, 2019
I've added a pull request for this issue.
I can't find a method in gradle that allows us to find automatically the dependency path.
What I ended up using was a trial and error approach. For example, try path A, if it doesn't exist, then try path B.
Hello,
Summary
aar libraries that are stored locally in the projects libs directory and are referenced as dependent aren't packaged in the final aar.
Example
If we reference a local aar library directly within the build.gradle files dependencies:
And within the sample file structure we have the below file:
example-lib/libs/example-native-local-lib.aar
This library isn't included in the built aar.
Code
When the
analyzeDependencies()
method within CopyDependenciesTask.groovy detects an external dependency, it expects the dependant libraries path to be found at the following location:<gradleUserHomeDir>/caches/modules-2/files-2.1/
This is fine if the dependency has been downloaded from an external repository however
this isn't always the case (as demonstrated in the above example).
Thanks,
Jon
The text was updated successfully, but these errors were encountered: