问题
I profile my build follwings instruction in Android:
gradlew --profile --recompile-scripts --offline --rerun-tasks assembleFlavorDebug
I found "UI:platformAttrExtractor" takes a long time, please see the screenshot.
I don't understand what "platformAttrExtractor" is and how can I remove it to save build time?
回答1:
I have the sample "problem". What I noticed is that by specifying the --offline
command line option for gradle, build time (and specifically the time taken by the platformAttrExtractor) task is reduced considerably
来源:https://stackoverflow.com/questions/47660949/what-is-platformattrextractor-in-android-task-execution