When I press the run button in Android Studio, my app compiles but shows this error (redacted):
Error:Program type a
@Edric: since I couldn't replay with images in the thread I am answering your question here.
Changes that worked for me:
PS: I also upgraded distributionUrl in gradle-wrapper.properties to http://services.gradle.org/distributions/gradle-4.6-all.zip