错误:右边界上的布局边界必须从边缘开始 [英] Error:layout bounds on right border must start at edge

查看:92
本文介绍了错误:右边界上的布局边界必须从边缘开始的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目昨天工作正常;但是当我今天将Android Studio更新到3.0并因此默认情况下启用AAPT2时.我有以下错误:

My project works fine yesterday; but when I Updated Android studio to 3.0 today and accordingly AAPT2 is enables by default. I have the following error:

Error:layout bounds on right border must start at edge.
Error:Execution failed for task ':app:mergeDevDebugResources'.
Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

我打开了日志文件,但找不到线索.当我在Google中搜索有关9个补丁的Error:layout bounds on right border must start at edge问题时,就会出现结果.我的项目中也有大约10个9补丁.但我不确定是什么问题.我知道我可以禁用Aapt2,但我想解决问题.谢谢.

I opened log file but can not find a clue. when I google Error:layout bounds on right border must start at edge questions about 9-patches in come in results. I have about 10 9-patches in my project too. but I am not sure what is the problem. I know I can disable Aapt2 but I want to resolve problem. Thanks.

推荐答案

您可以通过在终端中运行"gradlew --info assembleDebug"来检查其中哪一个不好.就我而言,我删除了其中一个的红色边框.希望对您有所帮助.

You can check which one of them is bad by running "gradlew --info assembleDebug" in the terminal. In my case I removed the red border from one of them. Hope it helps.

这篇关于错误:右边界上的布局边界必须从边缘开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆