title: IDE fatal error occurred String index out of range android studio
body: <p>i had this problem with Android Studio 3.2.1 .. Ubuntu OS
  every time i start it .. and after gradle build .. comes a notification of IDE error occurred and in details many varies things .. 
  then auto complete at XML files don't work .. also preview of it</p>
  
  <p>i added screen shots to last one happened 
  i need help and help is appreciated 
  <a href="https://i.stack.imgur.com/xSexz.png" rel="nofollow noreferrer">the error</a>
  <a href="https://i.stack.imgur.com/GPLb7.png" rel="nofollow noreferrer">the error details</a></p>