当前位置: 首页 > 知识库问答 >
问题:

将CSipSimple库作为模块导入时出现的问题

谭宜
2023-03-14

我正在尝试在我的项目中导入cSipSimple库以实现sip功能,在尝试导入文件时,我采用了通常的导入方式,即:

Add as a new module
add in gradle (Compile project)
Removed App ID  from lib gradle and added replace icon etc in app Manifest.

尽管如此,在同步gradle时,我还是再次得到了一个错误列表:

    Error:(552) Attribute "background" already defined with incompatible format.
Error:(397) Original attribute defined here.
Error:(622) Attribute "navigationMode" already defined with incompatible format.
Error:(539) Original attribute defined here.
Error:(629) Attribute "displayOptions" already defined with incompatible format.
Error:(545) Original attribute defined here.
Error:(644) Attribute "actionBarSize" already defined with incompatible format.
Error:(646) Attribute "windowMinWidthMajor" already defined with incompatible format.
Error:(577) Original attribute defined here.
Error:(646) Attribute "windowMinWidthMinor" already defined with incompatible format.
Error:(576) Original attribute defined here.
Error:(576) Original attribute defined here.
Error:(552) Attribute "background" already defined with incompatible format.
Error:(397) Original attribute defined here.
Error:(622) Attribute "navigationMode" already defined with incompatible format.
Error:(629) Attribute "displayOptions" already defined with incompatible format.
Error:(539) Original attribute defined here.
Error:(545) Original attribute defined here.
Error:(644) Attribute "actionBarSize" already defined with incompatible format.
Error:(577) Original attribute defined here.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
Error:(576) Original attribute defined here.
Error:(646) Attribute "windowMinWidthMinor" already defined with incompatible format.
Error:(576) Original attribute defined here.
Error:(646) Attribute "windowMinWidthMajor" already defined with incompatible format.

这是我第一次尝试导入项目并在中用作模块。所以无法找到确切的问题。如果我遗漏了什么,请一定告诉我。提前谢谢。

共有1个答案

古明煦
2023-03-14

您必须排除不兼容的类型模块(比如您的模块在这里有属性参数

下面是一个例子

错误:属性"titleTextStyle"已经定义

解决方案:必须从“材质”对话框中排除appcompat-v7

compile ("com.afollestad:material-dialogs:0.6.0"){
exclude group: 'com.google.android', module: 'appcompat-v7'
}

https://github.com/afollestad/material-dialogs/issues/184

 类似资料:
  • 问题内容: 我尝试用Python学习TensorFlow。我的问题是导入TF模块。这是我的配置: Python 3.6.1 , Windows 7 (带有MSVCP140.dll) 我已经通过命令(在电源外壳中)安装了TensorFlow。有用。 但是当我运行python环境并尝试导入Tensor Flow时 我遇到错误,此错误引发了另一个与之相关的错误,但是一开始我想先解决此问题 追溯(最近一次

  • 如何在新的Android Studio Arctic Fox | 2020.3.1 Canary 9中导入JAR或AAR包作为新的项目模块? 请让我知道。

  • 我试图修改Jenkins的一个现有插件,但当我试图添加Java中的新导入时,我被卡住了。 我的。java文件中的这个导入 谢谢。

  • 我试图将数据从MongoDB恢复到Azure Cosmos DB模拟器,以便测试我的应用程序。我最初使用数据导入工具,但在阅读文档后意识到这是用于Cosmos DB的SQLAPI,而我想使用MongoDB API。 我使用命令行成功地将数据从Mongo导出到json文件: 然后我尝试使用下面的命令将其导入Azure Cosmos DB Emulator 但是,我得到以下错误: 我在Azure Co

  • 我已经将volley库克隆为 我如何将其作为模块导入到我的android studio项目中,该项目由gradle提供支持,类似于IntelliJ Idea中的“导入模块”选项。

  • 问题内容: 我正在尝试从集群模块调用函数,如下所示: 我收到以下错误: 在IPython中,制表符补全似乎可以访问基本,克隆,外部,re,setup_module,sys和警告模块。sklearn目录中没有其他(包括群集)。 遵循以下pbu的建议并使用 我得到: 我在Windows上使用Python 3.4,scikit-learn 0.16.1。 问题答案: 问题是scipy / numpy安装