当遇到Gradle运行时提示'Could not determine the dependencies of task ':compileReleaseJava''的问题,解决方案是在工程根目录下添加local.properties和settings.gradle文件。local.properties中配置SDK目录,例如:sdk.dir=C:\xiong\android\adt-bundle-windows-x86-20140321\adt-bundle-windows-x86-20140321\sdk。而在settings.gradle中,需包含需要打包的工程,如include ':RoBoGuiceTest',缺少此配置会导致上述错误。