在Android studio的Terminal中输入以下指令执行;
//模糊编译
gradlew compileDebug --stacktrace -info
Task 'compileDebug' is ambiguous in root project 'xxxx-master'.
Candidates are: (选其一 替换 “compileDebug ”)
'compileDebugAidl',
'compileDebugAndroidTestAidl',
'compileDebugAndroidTestJavaWithJavac',
'compileDebugAndroidTestNdk',
'compileDebugAndroidTestRenderscript',
'compileDebugAndroidTestShaders',
'compileDebugAndroidTestSources',
'compileDebugJavaWithJavac',
'compileDebugNdk',
'compileDebugRenderscript',
'compileDebugShaders',
'compileDebugSources',
'compileDebugUnitTestJavaWithJavac',
'compileDebugUnitTestSources'.
//源码编译分析
gradlew compileDebugSources --stacktrace