External Annotaions and Android studio/gradle


#1

I've tried using external annotations to reduce the overhead of null-safety when interacting with the Android sdk.  The IDE seems to recognize them, but the gradle build fails.  Is there a way to plug that in?

Also, I saw somewhere that there’s a standard set of external annotations for Android, but have no idea where that is.  Thoughts?


#2

Hi, kotlin-gradle plugin automatically include annotations for android-sdk, so you need only to configure annotations in IDE: when you open your project and annotations aren't configured, you should see a notification with quickfix: 'Set up external annotations for...". Unfortunatly now there is no way to see the list of annotations configured for sdk/library in Android studio - UI is under development.

Could you post an error from gradle build?