harismuneer / Restaurant-Management-System

👨‍🍳 An Android based RMS that aims to digitalize the day to day processes of various restaurant operations including ordering, billing, kitchen, hall and inventory management.
https://github.com/harismuneer
MIT License
256 stars 180 forks source link

Gradle error #12

Open Larrikin47 opened 7 months ago

Larrikin47 commented 7 months ago

Gradle error : updated the gradle version but still not able to run the code ...

RoyRonik commented 2 weeks ago

It is a pretty older android project which is indicated by the use of the deprecated andriod support libraries and an older "compileSkdVersion"

Changes:

  1. Update compileSdkVersion and targetSdkVersion to 34

  2. Add this to you gradle.properties file: android.useAndroidX=true android.enableJetifier=true

  3. Replace the support libaries in your dependiences block with andriodX equivalents:

implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'androidx.recyclerview:recyclerview:1.2.1' implementation 'androidx.cardview:cardview:1.0.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.annotation:annotation:1.3.0'

  1. Update the Firebase Dependency Versions:

implementation 'com.google.firebase:firebase-core:21.1.1' implementation 'com.google.firebase:firebase-auth:22.1.0' implementation 'com.google.firebase:firebase-database:20.3.0'

  1. Make sure that you are using Java 8 or later compatibility.