Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed gradle in Restaurant-Management-System #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RoyRonik
Copy link

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

Changes:

Update compileSdkVersion and targetSdkVersion to 34

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

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'

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'

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants