我正在(正在嘗試)對現有Eclipse項目進行一些更改。 我導入到工作室,並添加了依賴項。Android Studio:找不到與給定名稱匹配的資源:attr'searchViewTextField'
的build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '23.0.3'
defaultConfig {
applicationId "com.uniapps.prayer.times.almoazin"
minSdkVersion 16
targetSdkVersion 23
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile files('libs/StartAppInApp-2.4.1.jar')
// compile 'com.android.support:appcompat-v7:24.1.1'
// compile "com.android.support:appcompat-v7:23.0.0"
compile "com.google.android.gms:play-services:9.4.0"
// compile 'com.android.support:support-v4:23.0.0'
compile "com.android.support:appcompat-v7:23.+"
compile "com.android.support:support-v4:23.+"
// compile 'com.android.support:support-v4:24.1.1'
}
我降落到下面的錯誤,那一刻我改變SDK版本低於23,我得到材料的設計錯誤。
請幫忙!
先謝謝您。
E:\Workspace\Intern\Prayer Timing\Pray Timmings\app\src\main\res\values\styles.xml
Error:(199, 5) No resource found that matches the given name: attr 'searchResultListItemHeight'.
Error:(199, 5) No resource found that matches the given name: attr 'searchDropdownBackground'.
Error:(199, 5) No resource found that matches the given name: attr 'searchViewCloseIcon'.
Error:(199, 5) No resource found that matches the given name: attr 'searchViewAutoCompleteTextView'.
Error:(199, 5) No resource found that matches the given name: attr 'searchViewEditQuery'.
Error:(199, 5) No resource found that matches the given name: attr 'searchViewEditQueryBackground'.
Error:(199, 5) No resource found that matches the given name: attr 'searchViewGoIcon'.
Error:(199, 5) No resource found that matches the given name: attr 'searchViewSearchIcon'.
Error:(199, 5) No resource found that matches the given name: attr 'searchViewTextField'.
Error:(199, 5) No resource found that matches the given name: attr 'searchViewTextFieldRight'.
Error:(199, 5) No resource found that matches the given name: attr 'searchViewVoiceIcon'.
Error:(242, 5) No resource found that matches the given name: attr 'searchDropdownBackground'.
Error:(242, 5) No resource found that matches the given name: attr 'searchResultListItemHeight'.
Error:(242, 5) No resource found that matches the given name: attr 'searchViewAutoCompleteTextView'.
Error:(242, 5) No resource found that matches the given name: attr 'searchViewCloseIcon'.
Error:(242, 5) No resource found that matches the given name: attr 'searchViewEditQuery'.
Error:(242, 5) No resource found that matches the given name: attr 'searchViewEditQueryBackground'.
Error:(242, 5) No resource found that matches the given name: attr 'searchViewGoIcon'.
Error:(242, 5) No resource found that matches the given name: attr 'searchViewSearchIcon'.
Error:(242, 5) No resource found that matches the given name: attr 'searchViewTextField'.
Error:(242, 5) No resource found that matches the given name: attr 'searchViewTextFieldRight'.
Error:(242, 5) No resource found that matches the given name: attr 'searchViewVoiceIcon'.
Error:(269, 5) No resource found that matches the given name: attr 'searchDropdownBackground'.
Error:(269, 5) No resource found that matches the given name: attr 'searchResultListItemHeight'.
Error:(269, 5) No resource found that matches the given name: attr 'searchViewAutoCompleteTextView'.
Error:(269, 5) No resource found that matches the given name: attr 'searchViewCloseIcon'.
Error:(269, 5) No resource found that matches the given name: attr 'searchViewEditQuery'.
Error:(269, 5) No resource found that matches the given name: attr 'searchViewEditQueryBackground'.
Error:(269, 5) No resource found that matches the given name: attr 'searchViewGoIcon'.
Error:(269, 5) No resource found that matches the given name: attr 'searchViewSearchIcon'.
Error:(269, 5) No resource found that matches the given name: attr 'searchViewTextField'.
Error:(269, 5) No resource found that matches the given name: attr 'searchViewTextFieldRight'.
Error:(269, 5) No resource found that matches the given name: attr 'searchViewVoiceIcon'.
Error:(628, 5) No resource found that matches the given name: attr 'spinnerMode'.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\Android\sdk\build-tools\24.0.1\aapt.exe'' finished with non-zero exit value 1
styles.xml
我共享文件覆蓋驅動器。我真的很感激任何幫助。
https://drive.google.com/open?id=0ByICCiyBOzYwQ2ZwcG5iNGlPZG8
後的活動類和它的佈局 –
我很抱歉,我不知道是這種風格鏈接到活動?有很多活動。 –
錯誤是與attr只與名稱開始搜索,我不知道,請指導我,我怎麼知道哪些活動與你分享。感謝您的考慮,Ojonugwa! –