'Why is the @Junction annotation not being recognized?

I'm creating an associative entity in a class to represent an association between two other classes with Room on Android. I'm sure I'll kick myself, but can anyone tell me why the @Junction annotation isn't being recognized in this class?

public class CollectionWithGamebooks {


@Embedded
public Collection collection;

@Relation(
        parentColumn = "collectionId",
        entityColumn = "gamebookId",
        associateBy = @Junction(CollectionGamebookCrossRef.class))

public LiveData<List<Gamebook>> gamebooks;

}

Android Studio displays @Junction in red. Additionally, I noticed that the editor doesn't suggest the associateBy attribute when I started to type it, unlike the parentColumn and entityColumn attributes. I've cleaned and re-built the project and checked all the dependencies (everything else Room related is working fine) but I'm just not seeing this one.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source