Gboyega Dada
Mar 4, 2017 · 1 min read

I’m getting this Gradle sync failed: Could not find method buildVersionName() for arguments [] on ProductFlavor_Decorated when I sync. Both config.gradle and library.gradle are imported.

Strange thing is, it doesn’t complain for buildVersionCode (which is called first)

Edit:

I found that ext.buildVersionNameWithoutClassifier() wasn’t defined. Not sure what it is intended to return exactly but I defined it myself (to convert the version code to a string and return it).

Gboyega Dada

Written by

Software Developer at Accounteer.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade