只有png图像可以转换成9个补丁?
如果我做错了什么就纠正我。我用油漆把jpg图像转换成png。然后将扩展更改为.9.png,以便由android将其转换为9修补程序映像。我通过android studio .But将这个映像转换成9个补丁,当我清理并构建它时,它会产生错误。
错误:任务执行失败“:app:mergeDebugResources”。某些文件处理失败,有关详细信息,请参阅日志
请帮帮忙
以下是我的xml:-
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="myresolver.faisal.home.com.myresolver.MainActivity">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerHorizontal="true"
android:src="@drawable/fear_72"/>
</RelativeLayout>发布于 2016-07-19 08:42:01
错误:任务执行失败“:app:mergeDebugResources”。某些文件处理失败,有关详细信息,请参阅日志
您可以在build.gradle部分中添加此内容
android
{
aaptOptions
{
cruncherEnabled = false
}
}你可以来这里看看
https://stackoverflow.com/questions/38453484
复制相似问题