SDK VERSION : 4.1.1
OS - Windows 10
Android Studio Details-
Android Studio Hedgehog | 2023.1.1 Canary 14
Build #AI-231.9225.16.2311.10533651, built on July 20, 2023
Runtime version: 17.0.7+0-b2043.56-10353782 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 4
Registry:
external.system.auto.import.disabled=true
debugger.new.tool.window.layout=true
ide.text.editor.with.preview.show.floating.toolbar=false
ide.highlighting.mode.essential=true
ide.experimental.ui=true
ide.essentials.mode=true
Process: com.GoAquatix.WorkForceApp, PID: 14821
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$4.done(AsyncTask.java:415)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381)
at java.util.concurrent.FutureTask.setException(FutureTask.java:250)
at java.util.concurrent.FutureTask.run(FutureTask.java:269)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/iid/FirebaseInstanceId;
at com.quickblox.messages.services.a.a.(Unknown Source:3)
at com.quickblox.messages.services.a.b.a(Unknown Source:2)
at com.quickblox.messages.services.SubscribeService.a(Unknown Source:15)
at com.quickblox.messages.services.SubscribeService.c(Unknown Source:57)
at com.quickblox.messages.services.SubscribeService.b(Unknown Source:0)
at com.quickblox.messages.services.SubscribeService.onHandleWork(Unknown Source:50)
at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:396)
at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:387)
at android.os.AsyncTask$3.call(AsyncTask.java:394)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.iid.FirebaseInstanceId" on path: DexPathList[[dex file "/data/data/com.GoAquatix.WorkForceApp/code_cache/.overlay/base.apk/classes2.dex", dex file "/data/data/com.GoAquatix.WorkForceApp/code_cache/.overlay/base.apk/classes3.dex", zip file "/data/app/4ptMcKFUSva13ISQg9Z3GA==/com.GoAquatix.WorkForceApp-_Flb_TrDchT6uBPLQcIFVw==/base.apk"],nativeLibraryDirectories=[/data/app/4ptMcKFUSva13ISQg9Z3GA==/com.GoAquatix.WorkForceApp-_Flb_TrDchT6uBPLQcIFVw==/lib/arm64, /data/app/~~4ptMcKFUSva13ISQg9Z3GA==/com.GoAquatix.WorkForceApp-_Flb_TrDchT6uBPLQcIFVw==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.quickblox.messages.services.a.a.(Unknown Source:3)
at com.quickblox.messages.services.a.b.a(Unknown Source:2)
at com.quickblox.messages.services.SubscribeService.a(Unknown Source:15)
at com.quickblox.messages.services.SubscribeService.c(Unknown Source:57)
at com.quickblox.messages.services.SubscribeService.b(Unknown Source:0)
at com.quickblox.messages.services.SubscribeService.onHandleWork(Unknown Source:50)
at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:396)
at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:387)
at android.os.AsyncTask$3.call(AsyncTask.java:394)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
// Make sure that you have the Google services Gradle plugin
id("com.google.gms.google-services")
// Add the Crashlytics Gradle plugin
id("com.google.firebase.crashlytics")
Please let me know if you need anything else to resolve this issue also this has raised due to updation of the TargetSDK to 33 as this is the requirement of the PlayStore
resolve crashes with adding these SDK
implementation "com.google.firebase:firebase-core:21.1.1"
implementation "com.quickblox:quickblox-android-sdk-messages:3.11.0"//
My app is getting crash due to the problem described below with logs.
I am using this below code & app is crashing due to this :
QBRequestGetBuilder requestBuilder = new QBRequestGetBuilder(); requestBuilder.setLimit(DIALOGS_PER_PAGE); // requestBuilder.setSkip(clearDialogHolder ? 0 : QbDialogHolder.getInstance().getDialogs().size()); /if (!utilObj.getProgressDialogObj().isShowing())/ utilObj.startLoader(this, R.drawable.image_for_rotation);
// Log.i(TAG, "dialog Unread1: " + params.getInt("56f3fac3a0eb4786ae00003f")); // Log.i(TAG, "dialog Unread2: " + params.getInt("56f3f546a28f9affc0000033")); }
// Log.i(TAG, "dialog Unread1: " + params.getInt("56f3fac3a0eb4786ae00003f")); // Log.i(TAG, "dialog Unread2: " + params.getInt("56f3f546a28f9affc0000033")); }
................................................................................................................................................
SDK VERSION : 4.1.1 OS - Windows 10 Android Studio Details-
Android Studio Hedgehog | 2023.1.1 Canary 14 Build #AI-231.9225.16.2311.10533651, built on July 20, 2023 Runtime version: 17.0.7+0-b2043.56-10353782 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 4 Registry: external.system.auto.import.disabled=true debugger.new.tool.window.layout=true ide.text.editor.with.preview.show.floating.toolbar=false ide.highlighting.mode.essential=true ide.experimental.ui=true ide.essentials.mode=true
Non-Bundled Plugins: Dart (231.9161.14) io.flutter (75.1.3) ...........................................................................................................................................................
Logs :
Process: com.GoAquatix.WorkForceApp, PID: 14821 java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$4.done(AsyncTask.java:415) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381) at java.util.concurrent.FutureTask.setException(FutureTask.java:250) at java.util.concurrent.FutureTask.run(FutureTask.java:269) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637) at java.lang.Thread.run(Thread.java:1012) Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/iid/FirebaseInstanceId; at com.quickblox.messages.services.a.a.(Unknown Source:3) at com.quickblox.messages.services.a.b.a(Unknown Source:2) at com.quickblox.messages.services.SubscribeService.a(Unknown Source:15) at com.quickblox.messages.services.SubscribeService.c(Unknown Source:57) at com.quickblox.messages.services.SubscribeService.b(Unknown Source:0) at com.quickblox.messages.services.SubscribeService.onHandleWork(Unknown Source:50) at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:396) at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:387) at android.os.AsyncTask$3.call(AsyncTask.java:394) at java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637) at java.lang.Thread.run(Thread.java:1012) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.iid.FirebaseInstanceId" on path: DexPathList[[dex file "/data/data/com.GoAquatix.WorkForceApp/code_cache/.overlay/base.apk/classes2.dex", dex file "/data/data/com.GoAquatix.WorkForceApp/code_cache/.overlay/base.apk/classes3.dex", zip file "/data/app/
4ptMcKFUSva13ISQg9Z3GA==/com.GoAquatix.WorkForceApp-_Flb_TrDchT6uBPLQcIFVw==/base.apk"],nativeLibraryDirectories=[/data/app/4ptMcKFUSva13ISQg9Z3GA==/com.GoAquatix.WorkForceApp-_Flb_TrDchT6uBPLQcIFVw==/lib/arm64, /data/app/~~4ptMcKFUSva13ISQg9Z3GA==/com.GoAquatix.WorkForceApp-_Flb_TrDchT6uBPLQcIFVw==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at com.quickblox.messages.services.a.a.(Unknown Source:3) at com.quickblox.messages.services.a.b.a(Unknown Source:2) at com.quickblox.messages.services.SubscribeService.a(Unknown Source:15) at com.quickblox.messages.services.SubscribeService.c(Unknown Source:57) at com.quickblox.messages.services.SubscribeService.b(Unknown Source:0) at com.quickblox.messages.services.SubscribeService.onHandleWork(Unknown Source:50) at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:396) at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:387) at android.os.AsyncTask$3.call(AsyncTask.java:394) at java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637) at java.lang.Thread.run(Thread.java:1012)..................................................................................................................................................................... Apps build.gradle
plugins { id("com.android.application") // ...
}
android { compileSdkVersion 33 buildToolsVersion '30.0.3'
}
dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'androidx.cardview:cardview:1.0.0' implementation 'androidx.mediarouter:mediarouter:1.4.0' implementation files('libs/sdei-support-lib.jar') implementation project(':compact_calender_library') implementation 'com.mikhaellopez:circularimageview:3.0.1' implementation 'com.github.michaelye.easydialog:easydialog:1.4' implementation 'androidx.multidex:multidex:2.0.1' implementation 'androidx.vectordrawable:vectordrawable:1.1.0' implementation 'com.google.android.material:material:1.4.0'
}
............................................................................................................................................................................................ Project's build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { ext.qbSdkVersion = '4.1.1' repositories { jcenter() google() } dependencies { // implementation 'com.google.firebase:firebase-crashlytics' classpath 'com.android.tools.build:gradle:4.1.3' classpath 'com.google.gms:google-services:4.3.15' // Add the Crashlytics Gradle plugin. classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.0' } }
//In your Gradle File
allprojects { repositories { jcenter() google() maven { url "https://maven.google.com/" } maven { url "https://github.com/QuickBlox/quickblox-android-sdk-releases/raw/master/" } } }
Please let me know if you need anything else to resolve this issue also this has raised due to updation of the TargetSDK to 33 as this is the requirement of the PlayStore