Как устранить это исключение
Это исключение вызывается и не может его разрешить...
Error:scalac: missing or invalid dependency detected while loading class file 'GenericCollection.class'.
Could not access term play in package <root>,
because it (or its dependencies) are missing. Check your build definition for
missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
A full rebuild may help if 'GenericCollection.class' was compiled against an incompatible version of <root>.
Ответы
Ответ 1
Сообщение об ошибке в основном говорит о том, что GenericCollection.class
имеет ссылку на пакет _root_.play
, но пакет play
не найден.
Вам нужно добавить зависимость от библиотеки, которая предоставляет пакет play
, который, скорее всего, является частью платформы воспроизведения.