Home › Build error fixes › Android / Gradle

A build.gradle file has an error

Android / Gradle · last reviewed 2026-11-10

The error looks like this

Build file 'C:\dev\app\android\app\build.gradle' line: 162
* What went wrong:
A problem occurred evaluating project ':app'.

Why it happens

Gradle could not run one of your build files: a typo, a missing property, or a plugin that is not applied.

How to fix it

  1. The "Where:" lines just above name the file and line number — open it there.
  2. The line below "What went wrong" says what is missing (for example "Could not get unknown property …").
  3. A missing property is usually a value expected in gradle.properties or an environment variable.

Not sure this is your error? Let ReleaseMedic read the whole log

Build logs are long and the last line is rarely the real cause. ReleaseMedic finds the first real error, explains it and gives the steps — free, and the log never leaves your computer.

$ npx releasemedic log build.log

Or pipe a build straight in: cd android && ./gradlew bundleRelease 2>&1 | npx releasemedic log -

Catch it before you build

Most release errors come from project settings you can check in seconds — signing, SDK levels, privacy manifests, permissions, push and login setup.

$ npx releasemedic

Related Android / Gradle errors