Android Studio 查看构建报告

时间:2022-03-12 19:42:59

下文会通过查看main源集的资源报告来介绍通过AndroidStudio查看Console的一般形式~

一、查看步骤:

以查看Task SourceSets为例:

1、点击 IDE 窗口右侧的 Gradle 。
2、导航至 MyApplication > Tasks > android 并双击 sourceSets。
3、要查看报告,请点击 IDE 窗口底部的 Gradle Console 。

以此为例,我们还可以通过双击:[androidDependencies][signingReport][build]等来查看更多编译报告~

Android Studio 查看构建报告

二、报告详情

通过Log,我们看到main源集的资源包括如下部分:

Compile configuration: compile
build.gradle name: android.sourceSets.main
Java sources: [app/src/main/java]
Manifest file: app/src/main/AndroidManifest.xml
Android resources: [app/src/main/res]
Assets: [app/src/main/assets]
AIDL sources: [app/src/main/aidl]
RenderScript sources: [app/src/main/rs]
JNI sources: [app/src/main/jni]
JNI libraries: [app/src/main/jniLibs]
Java-style resources: [app/src/main/resources]

报告更多详情:

Configuration on demand is an incubating feature.
:app:sourceSets

------------------------------------------------------------
Project :app
------------------------------------------------------------


main
----

Compile configuration: compile
build.gradle name: android.sourceSets.main
Java sources: [app/src/main/java]
Manifest file: app/src/main/AndroidManifest.xml
Android resources: [app/src/main/res]
Assets: [app/src/main/assets]
AIDL sources: [app/src/main/aidl]
RenderScript sources: [app/src/main/rs]
JNI sources: [app/src/main/jni]
JNI libraries: [app/src/main/jniLibs]
Java-style resources: [app/src/main/resources]

release
-------

Compile configuration: releaseCompile
build.gradle name: android.sourceSets.release
Java sources: [app/src/release/java]
Manifest file: app/src/release/AndroidManifest.xml
Android resources: [app/src/release/res]
Assets: [app/src/release/assets]
AIDL sources: [app/src/release/aidl]
RenderScript sources: [app/src/release/rs]
JNI sources: [app/src/release/jni]
JNI libraries: [app/src/release/jniLibs]
Java-style resources: [app/src/release/resources]