In Android Studio (Version 2.3), When i try to build (or clean) any project I am getting this error.
Error:Execution failed for task ':app:processDebugResources'.
> java.nio.charset.MalformedInputException: Input length = 1
How to solve this problem? I have searched a lot but could not be able to find any solution. Please help.
UPDATE:
app:gradle code:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "net.net23.fahimabrar.teacherassistant"
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'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.0.1'
compile 'com.android.support:design:25.0.1'
compile 'com.android.support:support-v4:25.0.1'
compile 'com.android.support:gridlayout-v7:25.0.1'
compile 'com.facebook.stetho:stetho:1.4.2'
testCompile 'junit:junit:4.12'
compile 'com.android.support:recyclerview-v7:25.0.1'
compile 'com.android.support:cardview-v7:25.0.1'
}
文件->项目结构->选择“项目”选项卡,确保项目中每个模块的“构建工具版本”彼此相同。(我的版本是25.0.0)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.