pagedList not working

the paged list is not working even after adding the dependency

Hi Sumit ,
Can you send snippet of build.gradle (App level) file . So that I can examine your issue .

plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'kotlin-kapt'
id 'kotlin-android-extensions'
id 'kotlin-android'
id 'com.google.firebase.crashlytics'

}
apply plugin: ‘com.google.gms.google-services’

android {
compileSdk 32

defaultConfig {
    applicationId "com.example.sly"
    minSdk 27
    targetSdk 32
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildFeatures {
    viewBinding true
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
    jvmTarget = '1.8'
}

}

dependencies {

//ccp
implementation 'com.hbb20:ccp:2.6.1'

// implementation ‘com.github.joielechong:countrycodepicker:2.4.2’

//firebase auth
implementation platform('com.google.firebase:firebase-bom:30.3.1')
implementation 'com.google.firebase:firebase-auth'



//material library
implementation 'com.google.android.material:material:1.7.0-alpha03'
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.google.firebase:firebase-storage:19.1.1'
implementation 'com.google.firebase:firebase-firestore:21.4.0'
implementation 'com.google.firebase:firebase-storage-ktx:20.0.1'
implementation 'com.google.firebase:firebase-firestore-ktx:24.2.1'
implementation 'com.google.firebase:firebase-auth-ktx:21.0.6'
implementation 'androidx.paging:paging-common-ktx:3.1.1'
implementation 'com.google.firebase:firebase-functions-ktx:20.1.0'
implementation 'com.google.firebase:firebase-analytics-ktx:21.1.0'
implementation 'com.google.firebase:firebase-crashlytics-ktx:18.2.12'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.google.firebase:firebase-bom:30.3.1'

// implementation ‘com.google.firebase:firebase-analytics-ktx’

// FirebaseUI for Firebase Realtime Database
implementation 'com.firebaseui:firebase-ui-database:8.0.1'

// FirebaseUI for Cloud Firestore
implementation 'com.firebaseui:firebase-ui-firestore:8.0.1'

// FirebaseUI for Firebase Auth
implementation 'com.firebaseui:firebase-ui-auth:8.0.1'

// FirebaseUI for Cloud Storage
implementation 'com.firebaseui:firebase-ui-storage:8.0.1'

//picassso
implementation 'com.squareup.picasso:picasso:2.8'



def paging_version = "3.2.0-alpha01"

implementation "androidx.paging:paging-runtime:3.2.0-alpha01"

// alternatively - without Android dependencies for tests
testImplementation "androidx.paging:paging-common:$paging_version"

// optional - RxJava2 support
implementation "androidx.paging:paging-rxjava2:$paging_version"

// optional - RxJava3 support
implementation "androidx.paging:paging-rxjava3:$paging_version"

// optional - Guava ListenableFuture support
implementation "androidx.paging:paging-guava:$paging_version"

// optional - Jetpack Compose integration
implementation "androidx.paging:paging-compose:1.0.0-alpha15"

implementation "androidx.viewpager2:viewpager2:1.0.0-beta02"

def lifecycle_version = “2.4.0”
implementation “androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version”
implementation “androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version”

}

@md.muneerhasan the paged list is having issue in the app the people section in the app crashes as soon as opened.

If you are able to run app on mobile , that means you have error in your code . Please check logcats.
Or share logs here after crashing the app .

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.