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
解决办法:清理下工程,重新编译

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。