Error: Suspicious method call; should probably call "layout" rather than "onLayout" [WrongCall]

打包的时候报错,意思是可疑方法调用!

Error: Suspicious method call; should probably call "layout" rather than "onLayout" [WrongCall]

解决方案
build.gradle:
添加 
android{
lintOptions { abortOnError false
  }
如果没效果 就在报错的方法前添加 @SuppressLint("WrongCall")试试

你可能感兴趣的:(Error: Suspicious method call; should probably call "layout" rather than "onLayout" [WrongCall])