fresco和appcompat-v7构建错误

时间:2016-10-19 04:22:32

标签: android android-appcompat fresco

在我的gralde文件中,我只添加了两个符合条件:

  

compile('com.android.support:appcompat-v7:23.4.0')
  编译( 'com.facebook.fresco:壁画:0.14.1')

构建项目时,我收到此错误:

  

com.android.build.api.transform.TransformException:   com.android.ide.common.process.ProcessException:   java.util.concurrent.ExecutionException:com.android.dex.DexException:   多个dex文件定义   Landroid /支撑/ V4 / accessibilityservice / AccessibilityServiceInfoCompat $ AccessibilityServiceInfoVersionImpl;

虽然我在下面排除了support-v4,但也存在错误。

 compile ('com.android.support:appcompat-v7:23.4.0') 
        {
             exclude module: 'support-v4' 
        }   
     

OR

 compile('com.facebook.fresco:fresco:0.14.1') 
        { 
            exclude module: 'support-v4' 
        }

它们中的任何一个都不起作用。

我很伤心,我没有找到解决方法,浪费了一整天!

1 个答案:

答案 0 :(得分:0)

将支持库更新到v24.2.1应解决此问题。