Solve the problem of "Error: layout bounds on right border must start at edge" reported when upgrading the compiled version

  • About AndroidStudio reported "Error: layout bounds on right border must start at edge" problem solved:

Recently, the project needs to be migrated from the AndroidStudio2.3 development environment to the new AndroidStduio3.0 environment for compilation and development. A friend copied the whole project to his computer, and the development tool was Android Studio 3.0, and the above error occurred. An "Error: layout bounds on right border must start at edge" was reported for Log positioning, but the reason could not be found. To solve this problem, I borrowed the idea of ​​a friend of StackOverFlow to solve the problem:
The address of StackOverFlow is:
https://stackoverflow.com/questions/46947961/errorlayout-bounds-on-right-border-must-start- The specific solution for at-edge
write picture description here
is: add android.enableAapt2=false in the "gradle.properties file; this code can solve the problem.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324708825&siteId=291194637