簡體   English   中英

AppCompat庫新手q的Android Studio Build錯誤

[英]Android Studio Build error with AppCompat library newbie q

我找不到工作室獨有的主題,所以我很抱歉,如果這是一個副本。 我是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沒有。 它肯定是安裝的,因為它位於與其他支持庫一起安裝的目錄中。 我該怎么辦?

嘗試將依賴項更改為next:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM