I get this error
# multiplatform
d
I get this error
r
Try
id("com.android.library")
in your
plugins
block instead of using
apply()
.
d
You have to apply the android plugin in the
plugins
block for this to work. Doing
apply(plugin = "com.android.library")
won't ......
What he said.
🙃 1
d
it then says it cant find "com.android.library"
d
You'll have to do some
pluginManagement
in your
settings.gradle.kts
file. Lemme find you a link.
r
It should work from
buildScript
too.
Maybe try moving
google()
above
jcenter()
in
repositories {}
to make sure it's picking up the right plugin
d
If the
buildscript
is declared in a parent gradle file iirc.
d
Build file '/home/daz/IdeaProjects/krossplatform/build.gradle.kts' line: 13 Plugin [id: 'com.android.library'] was not found in any of the following sources:
i created this project using idea and it didn't seem to include a parent gradle file
r
yeah go for
pluginManagement
then. That seems to be the more modern style anyway that Gradle has been suggesting
d
is there a sample for that?
d
legend - thank you
i was about to lose it! 😱
r
yeah this stuff can be a little opaque at first
d
thank you so much - by some kind of miracle I was able to get it all to work