skip to Main Content

So i’ve been working on an app for about a year now, two apps actually, an e-hailing app, a rider and a driver app.

now i’m done and about to post to google play store, google play store won’t allow target SDKs less than 34.

My app is built on sdk 33, so i have to change it sdk 34, the problem now is, the app runs on android emulator fine, but not on real device, it crashes instantly with several errors but three major ones

App built with: react-native version : 0.71.12

ERRORS

07-07 08:12:30.518 11330 11330 E SoLoader: couldn’t find DSO to load: libjscexecutor.so

07-07 08:12:30.614 11330 11330 E AndroidRuntime: FATAL EXCEPTION: main
07-07 08:12:30.614 11330 11330 E AndroidRuntime: Process: com.roundtripzdriver, PID: 11330
07-07 08:12:30.614 11330 11330 E AndroidRuntime: java.lang.RuntimeException: Unable to create application com.roundtripzdriver.MainApplication: java.lang.RuntimeException: Requested enabled DevSupportManager, but BridgeDevSupportManager class was not found or could not be created

and

07-07 08:12:30.614 11330 11330 E AndroidRuntime: Caused by: java.lang.SecurityException: com.roundtripzdriver: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn’t being registered exclusively for system broadcasts

when i revert to sdk33 it works fine on emulator and on real device

buildscript {
ext {
buildToolsVersion = "33.0.0"
minSdkVersion = 21
compileSdkVersion = 34
targetSdkVersion = 34

// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:7.4.2")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("com.google.gms:google-services:4.3.8")
}
}

the funny thing is this is the exact config i have on the rider app, with the only difference being

the rider app has a lower react-native version of 0.71.4 and in the buildscript.dependencies has a classpath("com.android.tools.build:gradle:7.3.1")

while the driver app (the one crashing) has a higher react native version of 0.71.12 and in the buildscript.dependencies has a classpath("com.android.tools.build:gradle:7.4.2")

I tried changing the classpath of the driver app to fit the rider app, but no change

honestly, I’ve been on this for a week now, and can’t find any solution, I’m at my wits end, so any help would be greatly appreciated.

2

Answers


  1. Chosen as BEST ANSWER

    This has been solved, i just upgraded my react-native version to 0.71.13 from 0.71.12

    and also increased the build tools version to 34.0.0


  2. Addition to @user3118363’s answer you should also upgrade minSdkVersion to 24, and change the Gradle version to 7.4.2 using AGP (Although it hasn’t been tested with SDK 34). Then Rerun the Gradle:
    Windows:

    gradlew cleanBuildCache
    

    Mac and Linux:

    ./gradlew cleanBuildCache
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search