Android Gradle Fails To Build After Clean (depends On Aar With Native Libraries)
Solution 1:
The reason this happened was because the dependency line changed, and was no longer right. I cannot figure out why it would work after one build, but not after a clean. The error message isn't clear! Even though the artifact didn't exist according to the dependency declaration, it would pass through that build step and attempt to compile.
In the end, fixing the dependency fixed this issue.
The artifact is named like this:
com.company:artifact:1.2.0.0.+@aar
That artifact exists. However, someone mistakenly changed it to:
com.company:artifact:1.2.0.0.0.+@aar
That does not exist. I had a copy of this artifact in my local ~/.m2 that fits the first, but not the second.
So, strangely, the dependency resolution had a false positive, and then the build would fail. To make matters worse, the second build (without a clean) would succeed.
Post a Comment for "Android Gradle Fails To Build After Clean (depends On Aar With Native Libraries)"