androidfluttergoogle-cloud-firestoreincompatibilityandroid-jetifier

Getting Error while Running Flutter App On Android (Android X) Incompatibility


I have been getting this error while running my app on android due to android X incompatibility. I am unable to fix this issue even after enabling multiDex true. Please help

enter image description here


Solution

  • I just changed my compileSDK to 30 and changed targetSDKVersion to 30 as well and changed minSDKVersion to 21 in my app level build.gradle and it started to work for me. And I also changed from classpath'com.android.tools.build:gradle:3.5.0' to classpath'com.android.tools.build:gradle:4.1.0' in my android build.gradle.