Watching this talk and I'm trying to mimic AndroidXPlugin. However I can't import all of the classes I need. Why is Android Studio saying android
is unresolved reference?
I can reference com.android.build.gradle.*
package in app/build.gradle
:
import com.android.build.gradle.LibraryExtension // :eyes: this works just fine
class MyPlugin implements Plugin<Project> {
@Override
void apply(Project target) {
project.plugins.all {
LibraryExtension // blah blah
}
}
}
but not in buildSrc/build.gradle
nor buildSrc/src/main/kotlin/com/example
(see attached MyPlugin.kt)