首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >“已配置相关功能,但未设置程序包ID。”当创建一个新模块时

“已配置相关功能,但未设置程序包ID。”当创建一个新模块时
EN

Stack Overflow用户
提问于 2020-02-29 12:33:40
回答 4查看 9.2K关注 0票数 21

我正在尝试创建一个新模块。这个模块的元素应该对第一个module.That可见,这就是我将implementation project(":messanger")添加到Build.gradle(:app)的原因,但它给出了以下错误:

代码语言:javascript
运行
复制
Dependent features configured but no package ID was set.
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing 
com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-4.0.0-beta01-6051327-linux Daemon #0: Unexpected error during link, attempting 
 to 
stop daemon.
 This should not happen under normal circumstances, please file an issue if it does.
EN

Stack Overflow用户

发布于 2021-05-09 17:30:12

如果模块是库,而不是应用程序

build.gradle ( for the module )中使用以下配置

代码语言:javascript
运行
复制
plugins {
    // id 'com.android.application'
    id "com.android.library"
}

android {
    defaultConfig {
     //   applicationId "com.xxx.xx.x"
    }
}

看起来是这样,这个库不需要applicationId

票数 4
EN
查看全部 4 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60461997

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档