Android开发之踩坑记

1.'buildSrc' cannot be used as a project name as it is a reserved name

条件: Android Studio 4.0 Gradle 6.0

解决办法:删除settings.gradle中的include(":buildSrc")

2.FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:packageRelease'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
No manifest found in apk for incremental build with enabled v1 signature

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1m 5s
解决办法:清理下工程,重新编译

你可能感兴趣的:(Android开发之踩坑记)