Android Studio 3.0 - Fix apk naming issue when upgrading to Gradle 3.0.0

Android Studio error “Cannot set the value of read-only property ‘outputFile’ for ApkVariantOutputImpl_Decorated{apkData=Main{type=MAIN……”’

To fix issue follow steps below:

YourApp/build.gradle