Android Studio: Theme.Sherlock.Light.DarkActionBar cannot be resolved
I have included the ABS aar, as seen here (https://github.com/JakeWharton/ActionBarSherlock-Gradle-Sample), in my project. It works fine with my classes, in my style XML, however, I get "Theme.Sherlock.Light.DarkActionBar cannot be resolved". My gradle file looks like this:
dependencies {
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.android.support:support-v4:18.0.+'}
In my style XML:
<stylename="AppTheme"parent="Theme.Sherlock.Light.DarkActionBar"><item name="textAppearanceFinish">@style/TextAppearanceFinish</item></style>
相關推薦
Android Studio: Theme.Sherlock.Light.DarkActionBar cannot be resolved
I have included the ABS aar, as seen here (https://github.com/JakeWharton/ActionBarSherlock-Gradle-Sample), in my project. It works fine with my classes
Android R檔案丟失或R cannot be resolved to a variable
寫Android遇到了R cannot be resolved to a variable的問題,檢視gen目錄,沒看到R檔案,以前沒遇到過,一時間解決不了問題,還好網上有博主寫了一個解決方法剛好就是
解決Android Studio下Element layer-list must be declared問題
post 報錯 ont ack 是個 oid 應該 track 產生 近期將一個項目從Eclipse轉到Android Studio。項目中使用了環信demo中的一些xml資源,轉換後發現color資源目錄下諸如layer-list或者shape等標簽報Elemen
The module is an Android project without build variants, and cannot be built
匯入 安卓專案報錯 Error:The module 'app' is an Android project without build variants, and cannot be built. Please fix the module's configuration in the build.gr
The module is an Android project without build variants, and cannot be built
匯入 安卓專案報錯 Error:The module 'app' is an Android project without build variants, and cannot be built. Please fix the module's configuration in the bu
Android Studio:R標紅Cannot resolve symbol’R的處理
很氣啊,這個東西。。。 第一步:開啟as資料夾…\AS\bin,記事本開啟idea.properties 第二步:查詢idea.max.intellisense.filesize=2500的值,把250
Android 編譯時出現r cannot be resolved to a variable
問題:編譯出現r cannot be resolved to a variable 原因:SDK的Tools沒有安裝 解決:在Android SDK Manager中安裝Tools部分,包括如下4項, 1.Android SDK Tools Rev
Android匯入專案出現“R cannot be resolved to a variable"錯誤的解決方法
1、選中該專案,右鍵properties,選中Android的Project Build Target 中版本最高的一項,並點選Apply ->OK。如下圖 2、選中Project,選中C
Android中cannot be resolved or is not a field錯誤的解決辦法
以下問題可以參考: 1.R cannot be resolved or is not a field 2.id cannot be resolved or is not a field 在寫第一程式的時候,遇到了這個錯誤,我在引用一個變數時,ListView myList
android r cannot be resolved to a variable 錯誤以及 所有的檔案沒有報錯但是專案報錯
1. 檢查Android 的SDK是否丟失需要重新下載,檢查build path 2.確保class沒有import Android.R; 3,錯誤class引用的layout的xml檔案沒有錯誤 4.檢查AndroidManifest.xml檔案,裡邊的package,lay
Android @style/Theme.AppCompat.Light
1.匯入support library 選擇SDK Manager --> Extras -->Android Support Library,點選install。安裝完成之後,會在SDK目錄下面生成 {sdk}/extras/android/support資料
工具問題——android升級ADT22之後新建android專案提示R cannot be resolved to a variable
今天手賤,升級了下SDK,跟著升級了ADT22,升級之後 新建android專案提示“R cannot be resolved to a variable”,整了兩個小時,又是重置環境變數,又是重灌e
Android開發:“R cannot be resolved to a variable”的另一種解決方法
今天開發中遇到了“R cannot be resolved to a variable”這個問題,上網搜了下,基本都說是clean下工程,或者重新匯入,或者重新整理工程就可以解決。以上方法我試了都沒能解決問題,我的R.java是生成了的,沒什麼問題。 最後才發現,原來原因是
匯入工程的“The import android cannot be resolved”錯誤解決方法
以及The import android cannot be resolved 解決辦法: 其實這個錯誤是Android的SDK問題,我們設定SDK的版本就可以了。 有如下方法1: 在project- Properties- Android中的Project Bu
16-07-16 android R cannot be resolved to a variable 原因
在Eclipse做android 專案時出現了“R cannot be resolved to a variable”錯誤提示: 這種情況是因為gen目錄下R.java檔案沒有生成,而R.java檔
styles設定Theme.AppCompat.Light.DarkActionBar主題後部分介面或控制元件未生效問題
<!-- Application theme. CustomButtonStyle --> <style name="BaseAppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
Eclipse Android專案 為控制元件添加了Id,但是在Java程式碼中提示xxx cannot be resolved or is not a field
在Android開發過程中,常需要在佈局檔案中為控制元件新增Id,以便在Java程式碼中找到這個控制元件。 但在使用Eclipse進行開發的過程中,常會出現明明已經在Layout XML檔案中為元件添
Android Eclipse匯入原始碼時對自己新增的class檔案提示"XXX cannot be resolved to a type"的解決辦法
Eclipse匯入原始碼時對自己新增的class檔案提示"XXX cannot be resolved to a type"錯誤提示,且在Eclipse中點選該class物件時無法跳轉到該類,解決辦法
如何解決eclipse android開發中的R cannot be resolved 的錯誤
出現這個錯誤有很多原因,一般都是先把gen資料夾的package刪除,生成新的檔案,看有沒有R.java,如果沒有請往下看: 可能的原因有: 1、res資料夾有錯誤,這個是主要問題,我遇到的兩次問題都是這個原因,第一次是xml的檔案命名中有大寫,xml的檔名必須小寫。第二
The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
it is miss ati refers () imp -s tar pre 問題描述 Exception in thread "main" java.lang.Error: Unresolved compilation problems: The t