问题
When using the Gradle experimental plugin with Android studio to build an NDK library, how do you see the low-level build log i.e. the compiler invocations for each file with all the arguments etc...?
回答1:
Using the experimental plugin the build log is in the gradle log file. On my Mac, that is in ~/Library/Logs/Android1.3/idea.log
You can run gradle with --debug or --info options for more verbose output. Running from the command line also produces more verbose output than in the IDE.
There is a lot of additional information in build/tmp/{buildstep} that is the output of the tools. Each build step will have a "options.txt" and "output.txt" file in it that shows the command options sent to the tool and the output of the tool respectively.
来源:https://stackoverflow.com/questions/34532233/how-do-you-view-the-raw-gradle-build-log-for-the-ndk-in-android-studio