skip to Main Content

How do I fix this "Duplicate class error" in Android Studio

I updated implementation com.google.android.gms:play-services-ads:19.8.0 to implementation com.google.android.gms:play-services-ads:20.4.0 and now I get this error: Duplicate class com.google.android.gms.internal.measurement.zzbs found in modules jetified-play-services-measurement-18.0.2-runtime (com.google.android.gms:play-services-measurement:18.0.2) and jetified-play-services-measurement-sdk-api-18.0.3-runtime (com.google.android.gms:play-services-measurement-sdk-api:18.0.3) Duplicate class com.google.android.gms.internal.measurement.zzl found in modules jetified-play-services-measurement-impl-18.0.2-runtime (com.google.android.gms:play-services-measurement-impl:18.0.2) and jetified-play-services-measurement-sdk-api-18.0.3-runtime (com.google.android.gms:play-services-measurement-sdk-api:18.0.3) Duplicate class com.google.android.gms.measurement.internal.zzfh found in…

VIEW QUESTION

Android Studio – LiveData with sqlite not updating UI

Here is the code for fetching data from sqlite database as livedata private LiveData<ArrayList<Message>> loadAllMessagesOfThisChat() { final MutableLiveData<ArrayList<Message>> messages= new MutableLiveData<>(); ArrayList<Message> messagesArrayList = new ArrayList<>(); SQLiteDatabase mDb = messagesDbHelper.getReadableDatabase(); String[] projection = { MessageDetails.COLUMN_SENDER_UID, MessageDetails.COLUMN_MESSAGE, MessageDetails.TIMESTAMP_ID, MessageDetails.COLUMN_IMAGE_URI}; Cursor cursor…

VIEW QUESTION
Back To Top
Search