You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix "Could not get unknown property 'libraryVariants'" (#160)
* Fix "Could not get unknown property 'libraryVariants'"
It looks like my prev dynamic-feature PR #158 requires some polishing.
After applying it to a project I got the error:
```
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':feature_album'.
> Could not get unknown property 'libraryVariants' for object of type com.android.build.gradle.AppExtension.
```
It looks like dynamic feature behaves differently that od `com.adndroid.featute` and does not have `libraryVariants` properly (It is `AppExtension`, not a `FeatureExtension`). Looking at [AppExtension docs](https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.AppExtension.html) I think we should retrieve variants from `applicationVariants` property.
* fix test
0 commit comments