0

I have an EXPO bare REACT NATIVE app with these versions of plugins:

  1. expo: 40.0.0;
  2. react: 17.0.1;
  3. react-native: 0.63.4;
  4. gradle: 6.7.1;
  5. com.android.tools.build:gradle:4.0.1;

I'm using Android SDK 29.

I'm able to build the app for ANDROID but when I lunch the app the app crash immediately and I can see the follow log of the error:

01-05 13:01:08.477  2019  2059 I PackageManager: Un-granting permission android.permission.SYSTEM_ALERT_WINDOW from package dr.vurp (protectionLevel=1250 flags=0x3808be46)
01-05 13:01:08.532  2019  2059 V BackupManagerService: restoreAtInstall pkg=dr.vurp token=1 restoreSet=0
01-05 13:01:08.535  2019  2059 I PackageManager: Un-granting permission android.permission.SYSTEM_ALERT_WINDOW from package dr.vurp (protectionLevel=1250 flags=0x3808be46)
01-05 13:01:08.658  2164  6364 W GCM     : Unexpected forwarded intent: Intent { act=android.intent.action.PACKAGE_ADDED dat=package:dr.vurp flg=0x4000010 cmp=com.google.android.gms/.chimera.PersistentIntentOperationService (has extras) }
01-05 13:01:08.660  2164  6364 W GCM     : Unexpected forwarded intent: Intent { act=android.intent.action.PACKAGE_ADDED dat=package:dr.vurp flg=0x4000010 cmp=com.google.android.gms/.chimera.PersistentIntentOperationService (has extras) }
01-05 13:01:08.724  2476  6372 I ChromeSync: [Sync,SyncIntentOperation] Handling the intent: Intent { act=android.intent.action.PACKAGE_ADDED dat=package:dr.vurp flg=0x4000010 cmp=com.google.android.gms/.chimera.GmsIntentOperationService (has extras) }.
01-05 13:01:08.831  2476  6372 I ChromeSync: [Persistence,AffiliationManager] One of affiliation or grouping data for android://kmwFUO2u567RIRuR_eBr5MxHSOYdjxr74L0S85SaDQmhz0MGxy5mYq5Me4rnpXOoHX5S5bYSRETq-PQT5rH6aQ==@dr.vurp/ was not found. Marking affiliation data as stale...
01-05 13:01:09.003  2019  2556 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:dr.vurp flg=0x4000010 (has extras) } to com.google.android.packageinstaller/com.android.packageinstaller.PackageInstalledReceiver
01-05 13:01:09.004  2019  2047 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:dr.vurp flg=0x4000010 (has extras) } to com.android.musicfx/.Compatibility$Receiver
01-05 13:01:09.004  2019  2047 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:dr.vurp flg=0x4000010 (has extras) } to com.google.android.gms/.games.chimera.GamesSystemBroadcastReceiverProxy
01-05 13:01:09.004  2019  2047 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:dr.vurp flg=0x4000010 (has extras) } to com.google.android.gms/.gass.chimera.PackageChangeBroadcastReceiver
01-05 13:01:09.004  2019  2047 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:dr.vurp flg=0x4000010 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
01-05 13:01:09.004  2019  2047 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:dr.vurp flg=0x4000010 (has extras) } to com.google.android.googlequicksearchbox/com.google.android.apps.gsa.googlequicksearchbox.GelStubAppWatcher
01-05 13:01:09.004  2019  2047 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:dr.vurp flg=0x4000010 (has extras) } to com.google.android.ims/.receivers.RcsAutoStartReceiver
01-05 13:01:09.273  2019  3232 I ActivityTaskManager: START u0 {flg=0x10000000 cmp=dr.vurp/.MainActivity} from uid 2000
01-05 13:01:09.377  6469  6469 I dr.vurp : Not late-enabling -Xcheck:jni (already on)
01-05 13:01:09.415  2019  2048 I ActivityManager: Start proc 6469:dr.vurp/u0a133 for activity {dr.vurp/dr.vurp.MainActivity}
01-05 13:01:09.455  6469  6469 E dr.vurp : Unknown bits set in runtime_flags: 0x8000
01-05 13:01:09.456  6469  6469 W dr.vurp : Unexpected CPU variant for X86 using defaults: x86
01-05 13:01:10.238  6469  6469 E AndroidRuntime: Process: dr.vurp, PID: 6469
01-05 13:01:10.238  6469  6469 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.zzbq" on path: DexPathList[[zip file "/data/app/dr.vurp-i_QM0MByY5Q55yWBpd18MA==/base.apk"],nativeLibraryDirectories=[/data/app/dr.vurp-i_QM0MByY5Q55yWBpd18MA==/lib/x86, /data/app/dr.vurp-i_QM0MByY5Q55yWBpd18MA==/base.apk!/lib/x86, /system/lib, /system/product/lib]]
01-05 13:01:10.253  2019  2556 W ActivityTaskManager:   Force finishing activity dr.vurp/.MainActivity
01-05 13:01:10.324  2019  2556 I ActivityManager: Process dr.vurp (pid 6469) has died: vis+99 TOP 
01-05 13:01:10.755  2019  2041 W ActivityTaskManager: Activity top resumed state loss timeout for ActivityRecord{ec93219 u0 dr.vurp/.MainActivity t-1 f}

The cause seems to be: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.zzbq", But I don't know why!

2
  • You have added the tag Google Play Services. A default emulator doesn't have that installed, ensure it is added.
    – Blundell
    Jan 5, 2021 at 12:36
  • @Blundell I'm using the emulator with Google Play Services installed. But I call also the maven google() in. my build.gradle file. Jan 5, 2021 at 12:44

1 Answer 1

1

I solved updating my main build.gradle file. I added the subprojects section

allprojects {
repositories {
   //...
}
subprojects {
    project.configurations.all {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'com.google.android.gms'
                    && !details.requested.name.contains('multidex') ) {
                details.useVersion "+"
            }

            if (details.requested.group == 'com.google.firebase'
                    && !details.requested.name.contains('multidex') ) {
                details.useVersion "+"
            }
        }
    }
}
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.