I had a same problem. Currently,the best option is to downgrade your class path to the last stable version. For me, i changed my class path to *classpath 'com.android.tools.build:gradle:3.3.2'*and it worked for me.
In Android studio 3.4, you can easily downgrade Android Gradle Plugin Version.
- Go to File->Project-Structure->Project
- Change Android Gradle Plugin Version to 3.3.2 or the last stable version for you
- Change the Gradle Version to 4.10.1
- Click Ok and sync
- Build Apk
Edit (Issue solved): Installing Service pack 1 for window 7 solved the issue. The problem was with Universal C Runtime in Windows.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…