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

  1. Change ‘each’ to ‘all’
  2. Change ‘output.outputFile’ to ‘outputFileName

3. Run $./gradlew clean build

Done.

software engineer, read, swim, travel. apps: https://goo.gl/rDuuQw https://goo.gl/15GvfE

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store