Skip to content

Error on including in Gradle: ftc/electronvolts/statemachine/AbstractState.class #1

@tmaxmax

Description

@tmaxmax

I have added the AAR for this lib under <root>/libs and then included it in TeamCode/build.gradle as specified in the wiki. When trying to build the project, I get the following error:

Execution failed for task ':TeamCode:checkDebugDuplicateClasses'.
> Could not resolve all files for configuration ':TeamCode:debugRuntimeClasspath'.
   > Failed to transform EVLib-release-.aar (:EVLib-release:) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.status=integration, org.gradle.usage=java-runtime}.
      > Execution failed for AarToClassTransform: C:\Users\tmaxm\.gradle\caches\transforms-2\files-2.1\a00aa508c8304d6aaee8beee0f8f68a6\jetified-EVLib-release.aar.
         > duplicate entry: ftc/electronvolts/statemachine/AbstractState.class

Any idea on what causes this and how I could fix it? If you need additional information I'm more than happy to provide. Thank you very much!

EDIT: I have also opened this StackOverflow thread which has additional details included.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions