Android Studio中建立误差应用程序兼容性库新手q [英] Android Studio Build error with AppCompat library newbie q

查看:225
本文介绍了Android Studio中建立误差应用程序兼容性库新手q的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到专属工作室一个线程,所以我道歉,如果这是一个DUP。我是新来的Andr​​oid工作室,有一个基本的问题。我已经安装了所有最新的支持库。我试图使用应用程序兼容性库,但它给我在这条线的styles.xml文件的错误。

I couldn't find a thread exclusive to studio so I apologize if this is a dup. I am new to android studio and have a basic problem. I have all the most recent support libraries installed. I am attempting to use the AppCompat library but it is giving me an error on this line of the styles.xml file.

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <!-- Customize your theme here. -->
</style>

的误差如下:

Gradle: Execution failed for task ':FeedBackUser:processDebugResources'.
> Could not call IncrementalTask.taskAction() on task      ':FeedBackUser:processDebugResources'

这是依赖的gradle:

This is the gradle dependencies:

dependencies {

// You must install or update the Support Repository through the SDK manager to use this dependency.
// The Support Repository (separate from the corresponding library) can be found in the Extras category.
compile 'com.android.support:support-v4:18.0.0'

// You must install or update the Support Repository through the SDK manager to use this dependency.
// The Support Repository (separate from the corresponding library) can be found in the Extras category.
compile 'com.android.support:appcompat-v7:0.0.+'

}

支持V4是好的,它在Android Studio中的我的外部库区域显示出来。应用程序兼容性没有。这肯定是安装,因为它位于其安装到与其他支持库的目录。我应该怎么办?

The support v4 is fine, and it shows up in my external libraries area of android studio. AppCompat does not. It is definitely installed as it is located in the directory it installs into with the other support libraries. What should I do?

推荐答案

尝试改变依赖下一:

dependencies {
    compile 'com.android.support:support-v4:18.0.0'
    compile 'com.android.support:appcompat-v7:18.0.+'
}

这篇关于Android Studio中建立误差应用程序兼容性库新手q的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆