Android Instant App:功能模块:该模块不能是android库

Bru*_*yne 5 android android-studio gradle-3.0 android-instant-apps

按照Google IO 教程,我开始将我的应用程序转换为支持即时功能。我让构建正确运行。我已经禁用,因为我遇到了构建错误。禁用这两个模块后,模块构建没有错误,但是当我去编辑应用程序的基本功能配置时,我得到aapt2enableNewResourceProcessingflagsThe module cannot be android library

有谁知道是什么导致了这个问题。我com.android.feature plugin在功能模块的构建中与构建风格构建类型一起使用。