Warning: The plugin firebase_storage requires Android SDK version 31. One or more plugins require a higher Android SDK version

We Are Going To Discuss About Warning: The plugin firebase_storage requires Android SDK version 31. One or more plugins require a higher Android SDK version. So lets Start this Flutter Article.

Warning: The plugin firebase_storage requires Android SDK version 31. One or more plugins require a higher Android SDK version

How to solve Warning: The plugin firebase_storage requires Android SDK version 31. One or more plugins require a higher Android SDK version

your error log has already solution provided :
Fix this issue by adding the following to E:\Flutter App\cash_mimo\android\app\build.gradle: android { compileSdkVersion 31 ... }

Warning: The plugin firebase_storage requires Android SDK version 31. One or more plugins require a higher Android SDK version

your error log has already solution provided :
Fix this issue by adding the following to E:\Flutter App\cash_mimo\android\app\build.gradle: android { compileSdkVersion 31 ... }

Solution 1

your error log has already solution provided :

Fix this issue by adding the following to E:\Flutter App\cash_mimo\android\app\build.gradle: android { compileSdkVersion 31 ... }

Original Author Hardik Mehta Of This Content

Solution 2

The following plugins need CompileSdkVersion 31:

  • cloud_firestore
  • firebase_auth
  • firebase_core
  • firebase_storage

You have two options:

  • Either you change the compilesdkVersion to 31 in your build.gradle file: android/app/build.gradle
  • You downgrade all plugins mentioned above to a version which does not require compilesdkVersion 31

Original Author Sandeep Singh Of This Content

Solution 3

You have to update your compile and target sdk version as 31 on app gradle

Original Author Rajasekaran M Of This Content

Solution 4

If you want to build your app without upgrading target SDK version for some reason, you can downgrade your android gradle version by adding below code to dependencies in: /project_root/build.gradle:

classpath 'com.android.tools.build:gradle:4.0.2'

Original Author Lou Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

ittutorial team

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment