Open zhizhangchen opened 7 years ago
@orhanobut Library module/build.gradle
file looks like this:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.orhanobut.tracklytics:tracklytics-plugin:2.0.0'
}
}
apply plugin: 'com.android.library'
apply plugin: 'com.orhanobut.tracklytics'
Error is:
> Failed to apply plugin [id 'com.orhanobut.tracklytics']
> Could not get unknown property 'applicationVariants' for object of type com.android.build.gradle.LibraryExtension.
It's an old issue that I haven't take a look unfortunately. Let me see if I can fix this in this weekend. I'll spend some time on it.
facing the same issue ERROR: Could not get unknown property 'applicationVariants' for object of type com.android.build.gradle.LibraryExtension. Open File
@orhanobut is any way to review the issue?
I tried to add the lib to the module like:
implementation "com.orhanobut.tracklytics:tracklytics-runtime:2.1.0"
But in result the plugin doesn't see annotations in the module
Could you make the lib like annotationProcessor
?
Error:(3, 0) Could not get unknown property 'applicationVariants' for object of type com.android.build.gradle.LibraryExtension. Open File