我找不到工作室独有的帖子,所以如果这是一个复制我道歉。我是android studio的新手并且有一个基本问题。我安装了所有最新的支持库。我正在尝试使用AppCompat库,但它在styles.xml文件的这一行上给了我一个错误。
<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依赖项:
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的外部库区域。 AppCompat没有。它肯定是安装的,因为它位于与其他支持库一起安装的目录中。我该怎么办?
答案 0 :(得分:5)
尝试将依赖项更改为下一个:
dependencies {
compile 'com.android.support:support-v4:18.0.0'
compile 'com.android.support:appcompat-v7:18.0.+'
}