解決:在build.grandle文件中buildToolsVersion下邊添加黃色代碼便可android
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
aaptOptions {
cruncherEnabled = false
useNewCruncher = false
}
defaultConfig {
applicationId "com.example.shuodao.one"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
這個出錯的緣由:通常是出如今圖片問題上,修改圖片後綴名,.9圖片也會出現這種問題;或者項目文件後綴名;app