gradle使用手册

gradle常用命令

gradlew compileDebugSources --stacktrace -info
gradlew processView2018DebugResources --stacktrace -info

指定具体渠道打包apk命令

In Terminal
gradlew clean assemble[productFlavor][buildType]
eg:
gradlew clean assembleXiaomiDebug 可简写 gradlew clean aXD

示例

gradlew processView2018DebugResources --stacktrace

gradlew compileDebugSources --stacktrace -info
gradlew processView2018DebugResources --stacktrace -info

> Task :app:processView2018DebugResources FAILED
Task ':app:processView2018DebugResources' is not up-to-date because:
  Task has failed previously.
All input files are considered out-of-date for incremental task ':app:processView2018DebugResources'.
Unable do incremental execution: full task run
AAPT2 aapt2-3.2.1-4818971-windows Daemon #0: starting

Execution failed for task ':app:processView2018DebugResources'.
> Android resource linking failed
  Output:  C:\fast\AndroidProjects\View\app\build\intermediates\merged_manifests\view2018Debug\processView2018DebugManifest\merged\AndroidManifest.xml:37: error: attribute android:confi
gHelper not found.
  error: failed processing manifest. 
posted @ 2020-10-15 16:07  javakam  阅读(192)  评论(0编辑  收藏  举报