Stop relying on internal AGP intermediate paths in the build directory. Use standard AGP classes to achieve the same result