我正在尝试在我的项目中导入sSipSimple库以获取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.
这是我第一次尝试导入项目并作为模块使用。所以无法找到确切的问题。如果我错过了什么,请告诉我。提前谢谢。
答案 0 :(得分:0)
您必须排除不兼容的类型模块(例如此处具有属性属性参数的模块)
以下示例
错误:属性" titleTextStyle"已定义
<强>解决方案强>:
您必须从材料对话框中排除appcompat-v7
:
compile ("com.afollestad:material-dialogs:0.6.0"){
exclude group: 'com.google.android', module: 'appcompat-v7'
}