Gradle build failed in android studio 2.2

I have just updated my android studio to version 2.2 ,gradle version is 2.14.1 ,an error “String index out of range:0” occured when i refresh/rebuild my project,it happend also in a new project. I tried to reinstall AS after delete all old configer,but it’s not worked! Forgive my English… Is there anyone know how to deal with it?