another question. at the moment i want to write custom gradle plugins with the help of includedBuild. so i created a directory and marked it as includedBuild in settings.gradle.ktx.
• in android studio 4.1 it is working and shows no errors
• in android studio 4.2.0-alpha15 it is also working (building the project) but every gradle.ktx file is now showing errors. is this a know bug?
bodo
11/03/2020, 3:15 PM
android studio 4.2.0-alpha15
bodo
11/03/2020, 3:16 PM
android studio 4.1.0
v
Vampire
11/03/2020, 3:20 PM
Did you try to refresh the Gradle project manually?
Did you try "Invalidate and Restart"? (Always worth a try if the IDE does behave unlogical like that)
Btw. are you aware of pre-compiled script plugins?
You can write your plugin with less boilerplate and with the the accessors being available just like if you would write a
build.gradle.kts
directly, just that you do it in a seperate project (no matter whether
buildSrc
or regular included build)
b
bodo
11/04/2020, 6:12 AM
yes i tryed all the mentioned things but nothing is working. maybe i will rewrite it to precompiled script and try out this.
thx
v
Vampire
11/04/2020, 8:48 AM
Well, maybe it is just a bug. After all you are using an alpha-version