This is the error log:
Error:Execution failed for task ':MobileSafe2:mergeDebugResources'.
Crunching Cruncher call_locate_blue.9.png failed, see logs
But when I turn the extension .9.pnginto .png, the error disappears, I do not know why this is happening.
This is the code:
public void myToast(String address) {
View view = View.inflate(context, R.layout.address_show, null);
view.setBackgroundResource(**R.drawable.call_locate_blue**);
TextView textView = (TextView) view.findViewById(R.id.tv_address);
textView.setText(address);
WindowManager.LayoutParams params = new WindowManager.LayoutParams();
params.height = WindowManager.LayoutParams.WRAP_CONTENT;
params.width = WindowManager.LayoutParams.WRAP_CONTENT;
params.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
| WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
| WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON;
params.format = PixelFormat.TRANSLUCENT;
params.type = WindowManager.LayoutParams.TYPE_TOAST;
wm.addView(view, params);
}
This is in Android Studio 
Error Information:

I need to fix '.9.png' in '.png', then it may work, but the image will be distorted
source
share