我正在尝试创建一个新模块。这个模块的元素应该对第一个module.That可见,这就是我将implementation project(":messanger")
添加到Build.gradle(:app)
的原因,但它给出了以下错误:
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.
发布于 2021-05-09 17:30:12
如果模块是库,而不是应用程序
在build.gradle ( for the module )
中使用以下配置
plugins {
// id 'com.android.application'
id "com.android.library"
}
android {
defaultConfig {
// applicationId "com.xxx.xx.x"
}
}
看起来是这样,这个库不需要applicationId
https://stackoverflow.com/questions/60461997
复制相似问题