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:fastAndroidProjectsViewappuildintermediatesmerged_manifestsview2018DebugprocessView2018DebugManifestmergedAndroidManifest.xml:37: error: attribute android:confi
gHelper not found.
error: failed processing manifest.