Hi there, in Native Android project, I am trying t...
# community-support
s
Hi there, in Native Android project, I am trying to add .aar file but it showing following error, could someone help to check even though I have added .aar as shown below in
build.gradle(:app)
and .aar file under ./app/libs/pitaraSharedRelease.aar
Copy code
implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
implementation files("../app/libs/pitaraSharedRelease.aar")
this is the error
Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=pitaraSharedRelease.aar, variant=local file, variantName=null, artifactFile=/Users/sureshmaidaragi/StudioProjects/penpencil-android-app/app/libs/pitaraSharedRelease.aar, isTestFixturesArtifact=false, extractedFolder=null, publishedLintJar=null, dependencyType=ANDROID, isWrappedModule=false, buildMapping={__current_build__=/Users/sureshmaidaragi/StudioProjects/penpencil-android-app})
v
I have no idea, as this might be something Android specific. But generally using
files
and
fileTree
for dependencies is highly questionable and usually not a good idea. If you really need local files as dependencies, at least use a
flatDir
repository and then normal dependency declarations. Maybe that might also fix your problem, but I don't know.
s
hi @Vampire instead using local file, I have hosted the KMM library on maven and trying to access it in Native android. I am coming across same issue..