Install realm template React Native Starter

User profile image

I bought the theme https://flatlogic.com/templates/react-native-starter and now I'm starting my project. But you need to install the realm.

I'm giving yarn install realm, but when starting the project with the realm, I'm getting the following error:

2022-07-12 08:00:28.747 10131-10131/com.reactnativestarter.upd E/AndroidRuntime: FATAL EXCEPTION: main Process: com.reactnativestarter.upd, PID: 10131 java.lang.RuntimeException: Could not instantiate application com.reactnativestarter.upd.MainApplication: java.lang.ClassNotFoundException: Could not find class "com.reactnativestarter.upd.MainApplication" in path: DexPathList[[zip file "/data /app/~~qxppSpY3NQWgHdbSYeyndA==/com.reactnativestarter.upd-BjiaobwkEh3ajICTytSFA==/base.apk"],nativeLibraryDirectories=[/data/app/~~qxppSpY3NQWgHdbSYeyndA==/com.reactnativestarter.upd-BjiaobwICTytS, /armAdataICTEh3aj /app/~~qxppSpY3NQWgHdbSYeyndA==/com.reactnativestarter.upd-BjiaobwkEh3ajICTytSFA==/base.apk!/lib/armeabi-v7a, /system/lib, /system/systemext/lib]] in android.app.LoadedApk.makeApplication(LoadedApk.java:1332) in android.app.ActivityThread.handleBindApplication(ActivityThread.java:7543) in android.app.ActivityThread.access$1500(ActivityThread.java:301) in android.app.ActivityThread$H.handleMessage(ActivityThread.java:2177) in android.os.Handler.dispatchMessage(Handler.java:106) in android.os.Looper.loop(Looper.java:246) in android.app.ActivityThread.main(ActivityThread.java:8653) in java.lang.reflect.Method.invoke(Native Method) in com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602) in com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130) Caused by: java.lang.ClassNotFoundException: not found class "com.reactnativestarter.upd.MainApplication" in path: DexPathList[[zip file "/data/app/~~qxppSpY3NQWgHdbSYeyndA==/com.reactnativestarter.upd-BjiaobwkEh3ajICTytSFA = =/base.apk"],nativeLibraryDirectories=[/data/app/~~qxppSpY3NQWgHdbSYeyndA==/com.reactnativestarter.upd-BjiaobwkEh3ajICTytSFA==/lib/arm, /data/app/~~qxppSpY3NQWgHdbSYeyndA==/com. reactnativestarter.upd-BjiaobwkEh3ajICTytSFA==/base.apk!/lib/armeabi-v7a, /system/lib, /system/systemext/lib]] in dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207) in java.lang.ClassLoader.loadClass(ClassLoader.java:379) in java.lang.ClassLoader.loadClass(ClassLoader.java:312) in android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:76) in androidx.core.app.CoreComponentFactory.instantiateApplication(CoreComponentFactory.java:47) in android.app.Instrumentation.newApplication(Instrumentation.java:1158) in android.app.LoadedApk.makeApplication(LoadedApk.java:1324) in android.app.ActivityThread.handleBindApplication(ActivityThread.java:7543) in android.app.ActivityThread.access$1500(ActivityThread.java:301) in android.app.ActivityThread$H.handleMessage(ActivityThread.java:2177) in android.os.Handler.dispatchMessage(Handler.java:106) in android.os.Looper.loop(Looper.java:246) in android.app.ActivityThread.main(ActivityThread.java:8653) in java.lang.reflect.Method.invoke(Native Method) in com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602) in com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

The application is closed on startup.

"react": "16.9.0", "react-native": "0.64.1",

User profile image

Hi Michael,

We are investigating the issue and will update you soon with the solution.

Best, Eugene

User profile image

Hi Michael,

Please try to put such dependency

"react": "17.0.2", "react-native": "0.66.1", "realms": "10.19.5"

And for ios put in Podfile

platform :ios, '13.0'

instead of

platform :ios, '10.0'

there are a lot of errors associated with the realm for react-native, and there are a lot of crutches in the vastness of GitHub that used to work, but are not relevant now

Solved
User profile image
Shiv Technolabs

Hi @Michel Orth,

I hope this message finds you well!

I am not much aware of React Native, as I’m a beginner in React Native development. I suggest you hire dedicated React Native developers for assistance. They will be able to resolve your issues in the shortest possible time. I hope this helps. Thank you.

Cookie Consent

By continuing to browse or by clicking 'OK', you agree to the storing of cookies on your device to enhance your site experience and for analytical purposes. To learn more about how we use cookies, please see our cookies policy.