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
I know this issue is similar to #11 ; however, that one is closed.
I have been working on migrating a project to AndroidX and it was held up by an issue like this: Unable to resolve dependency for <The consumer module>@debug/compileClasspath: Failed to transform artifact <The aar file> to match attributes {artifactType=jar}.
I resolved the issue, by doing the following:
Clone the repository.
Update the analytics-android-integration-localytics project to the latest Android updates, including AndroidX.
Generate a jar file instead of an aar file. (This is the winning item here. It must be me jar file for it to work. An aar file isn't needed anyway since there aren't any resources in this project's aar file.)
Remove the existing maven dependencies in the consuming project.
Import the jar file as new module in the consuming project.
Rebuild the consuming project.
Now that the consuming project is using a new module, which houses the new jar file, the Gradle transform steps works just fine. It will not work with the aar file at all.
I recommend that the project be updated to the latest versions of Android, Android libraries, etc, and that a jar file be distributed along with the aar file to enable dependent projects to consume the jar artifact.
If it helps, I've uploaded a Git patch file with the Android updates for this project.
To whom this may concern:
I know this issue is similar to #11 ; however, that one is closed.
I have been working on migrating a project to AndroidX and it was held up by an issue like this: Unable to resolve dependency for <The consumer module>@debug/compileClasspath: Failed to transform artifact <The aar file> to match attributes {artifactType=jar}.
I resolved the issue, by doing the following:
Now that the consuming project is using a new module, which houses the new jar file, the Gradle transform steps works just fine. It will not work with the aar file at all.
I recommend that the project be updated to the latest versions of Android, Android libraries, etc, and that a jar file be distributed along with the aar file to enable dependent projects to consume the jar artifact.
If it helps, I've uploaded a Git patch file with the Android updates for this project.
Best,
Gregory
androidx_migration.patch.zip
The text was updated successfully, but these errors were encountered: