In case anyone runs across this, my workaround was "remove project dependency between projects from gradle, add subproject B source paths (both normal and generated) to project A in gradle, and add a compilation dependency". Not graceful but seems to resolve the problem.