Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/226.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
与appcompat-v7一起添加的Android support-v4库_Android_Android Studio_Android Support Library - Fatal编程技术网

与appcompat-v7一起添加的Android support-v4库

与appcompat-v7一起添加的Android support-v4库,android,android-studio,android-support-library,Android,Android Studio,Android Support Library,在我的buildgradle文件中,我有两个依赖项(appcompat-v7和design),然后是我添加到项目中的任何外部jar文件 dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.2.1' compile 'com.android.support:design:22.2.1' } 在项目库(pro

在我的buildgradle文件中,我有两个依赖项(appcompat-v7和design),然后是我添加到项目中的任何外部jar文件

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.2.1'
    compile 'com.android.support:design:22.2.1'
}
在项目库(project structure->libraries)中找到外部jar文件appcompat-v7、design-22.2.1、support-v4和support-annotations-22.2.1是否正常,我不明白为什么要添加最后两个,我认为它们是我遇到的另一个问题(dexDebug)的原因

有人知道这是否正常吗?
感谢运行
/gradlew-q app:dependencies
显示
com.android.support:appcompat-v7
依赖于
com.android.support:support-v4
,这就是它被引入的原因。您必须为dex调试问题找到单独的解决方案