Kapt: generatestubs


#1

Using kapt with: generatestubs = true, in order to use libraries like dagger 2 or dbflow, makes accessing internal classes from unit tests impossible.

Example project: https://goo.gl/5VxCG7 (remove kapt option in app’s gradle in order to run tests without errors)


#2

generateStubs is an option that existed in the old kapt implementation. Please switch to the new one: http://kotlinlang.org/docs/reference/kapt.html


#3

Thank you for the response!
Switching to new implementation solved the issue.