Android Studio 檢視構建報告

weixin_34107955發表於2017-09-06

下文會通過檢視main源集的資源報告來介紹通過AndroidStudio檢視Console的一般形式~

一、檢視步驟:

以檢視Task SourceSets為例:

1、點選 IDE 視窗右側的 Gradle 。
2、導航至 MyApplication > Tasks > android 並雙擊 sourceSets。
3、要檢視報告,請點選 IDE 視窗底部的 Gradle Console 。

以此為例,我們還可以通過雙擊:[androidDependencies][signingReport][build]等來檢視更多編譯報告~

3828779-f159a1843a659bdb.png
AndroidStudio

二、報告詳情

通過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]

相關文章