更新时间:2022-05-01 08:19:37
如果你有一个库模块,则不能使用应用插件:com.android.application
在模块定义语句,或构建为你看到的将静默失败。使用应用插件:com.android.library
而不是
If you have a library module, it can't use the apply plugin: 'com.android.application'
statement in the module definition, or the build will silently fail as you're seeing. use apply plugin: 'com.android.library'
instead.
一个错误已被提出来请求构建系统失败了一声,而不是默默地当发生这种情况:https://$c$c.google.com/p/android/issues/detail?id=76725
A bug has been filed to request that the build system fail loudly instead of silently when this happens: https://code.google.com/p/android/issues/detail?id=76725