I started converting my app to support instant feature, following the Google IO tutorial. I got the build running correctly. I've disabled aapt2 and enableNewResourceProcessing as i was running into build errors. The module builds without errors after disabling those two flags but when i go to edit configuration of the base Feature of the app i get The module cannot be android library. 
Does anyone know what causes this issue. I'm using com.android.feature plugin in the feature module's build along with build flavours and build types.