The activity '{0}' cannot be referenced by activity '{1}' because the latter is not in another activity's implementation. ...

The activity '{0}' cannot be referenced by activity '{1}' because the latter is not in another activity's implementation.  An activity can only be referenced by the implementation of an activity which specifies that activity as a child or import.  Activity '{0}' is declared by activity '{2}'.