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

Gradle error #12

Open
Larrikin47 opened this issue Mar 17, 2024 · 1 comment
Open

Gradle error #12

Larrikin47 opened this issue Mar 17, 2024 · 1 comment

Comments

@Larrikin47
Copy link

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

@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:

  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.

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

No branches or pull requests

2 participants