Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Null extracted folder for artifact: ResolvedArtifact

Added another version of AAR to the libs directory, after click Sync an error appeared

Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=mylib-release-1.13.aar, variantName=null, artifactFile=D:...\app\libs\mylib-release-1.13.aar, extractedFolder=null, dependencyType=ANDROID, isWrappedModule=false, buildMapping={current_build=D:...}, mavenCoordinatesCache=com.android.build.gradle.internal.ide.dependencies.MavenCoordinatesCacheBuildService$Inject@60eddcd6)

Even after I changed the version of the library to 1.14 and did Sync, the problem remained. How can I fix this problem?

like image 902
Andrew Efremov Avatar asked Oct 18 '25 10:10

Andrew Efremov


2 Answers

Make Sure your app module build.gradle must have libs not lib

implementation files('libs/mylib-release-1.13.aar')
like image 131
The Holy Coder Avatar answered Oct 21 '25 01:10

The Holy Coder


That error is because gradle does not find the .aar, check if you are in the right project, generally it is app. And then add the implementation, for me it worked using this in the gradle app module

implementation files('libs/player-release.aar')

And the .aar was located in: C:\Users\denis\workspace\PlayerApp\app\sdk\libs

like image 22
dreinoso Avatar answered Oct 20 '25 23:10

dreinoso



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!