Meituan-Dianping / Robust

Robust is an Android HotFix solution with high compatibility and high stability. Robust can fix bugs immediately without a reboot.
Apache License 2.0
4.42k stars 807 forks source link

Error:Could not get unknown property 'applicationVariants' for object of type com.android.build.gradle.LibraryExtension. #208

Closed clwater closed 6 years ago

clwater commented 6 years ago

异常类型:编译异常 Robust版本:0.4.71 Gradle版本:3.0.0 系统:Mac

module为library时会提示如下错误 Error:Could not get unknown property 'applicationVariants' for object of type com.android.build.gradle.LibraryExtension.

是不支持library开发么

oubowu commented 6 years ago

是的 我也试过了

clwater commented 6 years ago

看Robust的原理应该支持library的 有了解是什么原因导致的问题么

hedex commented 6 years ago

这个问题正在解决~ 感谢反馈

Kolyall commented 6 years ago

Seems you try to use android.applicationVariants in library module. Tutorial: In app module use apply plugin: 'com.android.application' and android.applicationVariants In library module use apply plugin: 'com.android.library' and android.libraryVariants