arekolek
03/17/2020, 8:44 AMbuild.gradle
I have apply from: 'test.gradle.kts'
, then in test.gradle.kts
I have:
tasks.register("vytibnhcyfugohsjfdbnafvdsa") {
}
After I run Sync Project with Gradle files twice, I get this warning in Android Studio (see image), and the log says
Caused by: org.gradle.api.internal.tasks.DefaultTaskContainer$DuplicateTaskException: Cannot add task 'vytibnhcyfugohsjfdbnafvdsa' as a task with that name already exists.Am I doing something wrong, or is this is a bug?
Francisco Javier Ruiz Rodriguez
03/17/2020, 8:49 AMarekolek
03/17/2020, 8:51 AMarekolek
03/17/2020, 8:52 AM./gradlew tasks
doesn't give any more information, it prints the task name as expected among other tasksMarc Knaup
03/17/2020, 8:53 AMprintln(…)
something before creating the task.
Probably and for whatever reason the script is executed twice 😮arekolek
03/17/2020, 3:58 PMprintln("vyuogihj")
before tasks.register
, then I got:
$ ./gradlew tasks | grep vyuogihj
vyuogihj
arekolek
03/17/2020, 4:01 PMFrancisco Javier Ruiz Rodriguez
03/17/2020, 4:04 PM