I see two problems:
Deprecated dynamic property: "srcDirs" on "source set aild", value: "[src]".
is because you misspelled aild.srcDirs
in your build file -- it should be aidl.srcDirs
.
> Cannot add task ':assembleTest' as a task with that name already exists.
is because you're trying to create a flavor named "test", but this is being used by something else in the build and it's colliding. Try using a different name.
To be more specific, the Android plugin makes a number of tasks based off the flavor name (it does this with build types, too). If you have a flavor name "foo", assembleFoo performs an assemble but only on the foo flavor. There's already an assembleTest task, so it's colliding when it tries to make one for your flavor.