android studio昨晚正在工作。我只是保存项目并关闭android studio。当我再次打开时,我收到此错误。如何解决
D:\BilgiYarismasi\app\src\main\res\drawable\drawable.exe: Error: The file name must end with .xml or .png
D:\BilgiYarismasi\app\src\main\res\drawable-v24\drawable-v24.exe: Error: The file name must end with .xml or .png
D:\BilgiYarismasi\app\src\main\res\font\font.exe: Error: The file name must end with .xml, .ttf, .ttc or .otf
D:\BilgiYarismasi\app\src\main\res\layout\layout.exe: Error: The file name must end with .xml
D:\BilgiYarismasi\app\src\main\res\mipmap-anydpi-v26\mipmap-anydpi-v26.exe: Error: The file name must end with .xml or .png
D:\BilgiYarismasi\app\src\main\res\mipmap-hdpi\mipmap-hdpi.exe: Error: The file name must end with .xml or .png
D:\BilgiYarismasi\app\src\main\res\mipmap-mdpi\mipmap-mdpi.exe: Error: The file name must end with .xml or .png
D:\BilgiYarismasi\app\src\main\res\mipmap-xhdpi\mipmap-xhdpi.exe: Error: The file name must end with .xml or .png
D:\BilgiYarismasi\app\src\main\res\mipmap-xxhdpi\mipmap-xxhdpi.exe: Error: The file name must end with .xml or .png
D:\BilgiYarismasi\app\src\main\res\mipmap-xxxhdpi\mipmap-xxxhdpi.exe: Error: The file name must end with .xml or .png
D:\BilgiYarismasi\app\src\main\res\values\values.exe: Error: The file name must end with .xml
:app:mergeDebugResources FAILED
我的gradle classpath'com.android.tools.build:gradle:3.1.4'
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig {
applicationId "myid"
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
答案 0 :(得分:1)
只需从所有可绘制文件夹扩展名中删除.exe
。然后它将成功构建