0
經過相當多的廣泛研究並未能找到解決方案後,此問題即將公佈。當我嘗試編譯我的項目,我得到這個錯誤:編譯期間未發現資源錯誤| Android
Error:(94, 54) No resource found that matches the given name (at 'android:actionModeCloseDrawable' with value '@drawable/abc_ic_ab_back_mtrl_am_alpha').
下面是我的build.gradle:
apply plugin: 'com.android.application'
ext {
supportLibVersion = '25.3.1'
}
android {
compileSdkVersion 25
buildToolsVersion '25.0.0'
defaultConfig {
applicationId "com.editor.photoeditor"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
dexOptions {
javaMaxHeapSize "4g"
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile "com.android.support:support-annotations:${supportLibVersion}"
compile "com.android.support:support-v4:${supportLibVersion}"
compile "com.android.support:appcompat-v7:${supportLibVersion}"
compile('com.afollestad.material-dialogs:core:[email protected]') {
transitive = true
}
compile 'com.github.javiersantos:MaterialStyledDialogs:1.4.1'
compile 'com.github.darsh2:MultipleImageSelect:v0.0.4'
compile 'com.github.lopei:collageview:0.1.2'
compile 'com.android.support:multidex:1.0.1'
compile 'com.google.android.gms:play-services:7.8.0'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.orhanobut:logger:1.11'
compile 'com.adobe.creativesdk.foundation:auth:0.3.94'
compile 'com.adobe.creativesdk:image:4.0.0'
compile 'com.github.QuadFlask:colorpicker:0.0.8'
compile 'com.squareup.okhttp:okhttp:2.3.0'
compile 'com.github.bumptech.glide:glide:3.6.1'
compile 'com.readystatesoftware.systembartint:systembartint:1.0.3'
compile 'com.melnykov:floatingactionbutton:1.3.0'
compile 'com.cocosw:bottomsheet:[email protected]'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
}
我曾嘗試到現在:
1)清理項目和重建工程
2)刪除build文件夾和升級改造項目
3)降級到23.0.0和我的build.gradle中給出的最終版本的支持庫之間的所有可能版本。
4)通過幾乎每篇文章都走了,其中大部分建議可變@drawable/abc_ic_ab_back_mtrl_am_alpha
的名稱更改爲R.drawable.abc_ic_ab_back_materia
,但因爲它是在<style name="MD_Dark" parent="Theme.AppCompat.Dialog.Alert">
風格和問題在編譯過程中只顯示,因此,我不能改變的名稱這個項目也是如此。
爲什麼這個漫長的名字?嘗試將其縮短。 – Ibrahim
使其自我解釋。夠好了? –