Software⏱️ 2 min read📅 2026-06-03

How to Fix: Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to

Gradle error with outdated Android plugin. Update to a more recent version or set ANDROID_DAILY_OVERRIDE environment variable.

Quick Answer: Update the Android plugin in your build.gradle file to a more recent version, e.g., 'com.android.tools.build:gradle:7.0.4'. Alternatively, set the ANDROID_DAILY_OVERRIDE environment variable to resolve the issue.

The error message 'Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to...' indicates that the Android plugin used in your project has become outdated. This can be caused by several factors, including using an older Gradle build tool or not updating the plugin regularly.

🛑 Root Causes of the Error

  • Using an older Gradle build tool.
  • Not updating the Android plugin regularly.

🛠️ Step-by-Step Verified Fixes

Method 1: Updating Gradle Build Tool

  1. Step 1: Open your terminal or command prompt and run the following command to update Gradle: gradlew :app:preBuild --refresh-dependencies

Method 2: Updating Android Plugin

  1. Step 1: Open your terminal or command prompt and run the following command to update the Android plugin: gradlew :app:preBuild --refresh-dependencies

💡 Conclusion

By following these steps, you should be able to resolve the 'Plugin is too old' error and get your project up and running smoothly again.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions