1

我正在尝试在我的项目中导入 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.

这是我第一次尝试导入项目并将其用作模块。所以无法找出确切的问题。如果我错过了什么,请告诉我。提前致谢。

4

1 回答 1

0

您必须排除不兼容类型的模块(例如您的模块在此处具有属性属性参数)

下面的一个例子

错误:已定义属性“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

于 2017-12-13T12:25:29.673 回答