-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to read from field 'com.twilivoicreatenative.jsEventEmitter com.twiliovoicereactnative.Voice application OnProxy.jsEventEmitter on a null object reference' #426
Comments
Hi @nayagam-ibz please fill out the issue template when filing issues in this repository. The info in the template is necessary for us to help debug your issue. |
Hi @mhuynh5757 , I need help configuring this package with the android updated SDK API level 34. I followed all the steps outlined in the reference application, but I'm unable to run the app. It crashes every time we try to open it. If we don't configure the application then I get the below error: ----- Error Start------ I've used the same JNI libraries from the reference application and configured them in the build.gradle file, but it hasn't resolved the issue. Here is the code: Files paths: - MainActivity.java: package com.sigmago; import android.Manifest; import com.facebook.react.ReactActivity; public class MainActivity extends ReactActivity { public static class MainActivityDelegate extends ReactActivityDelegate {
} private final VoiceActivityProxy activityProxy = new VoiceActivityProxy( /**
/**
@OverRide @OverRide @OverRide
package com.sigmago; import android.app.Application; import com.facebook.react.PackageList; import com.sigmago.newarchitecture.MainApplicationReactNativeHost; import android.content.BroadcastReceiver; public class MainApplication extends Application implements ReactApplication {
} - MainReactNativeHost.java: package com.sigmago; import android.app.Application; class MainReactNativeHost extends VoiceApplicationProxy.VoiceReactNativeHost {
}
package com.sigmago.newarchitecture.components; import com.facebook.jni.HybridData; /**
@DoNotStrip private final HybridData mHybridData; @DoNotStrip @DoNotStrip @DoNotStrip - MainApplicationTurboModuleManagerDelegate.java: package com.sigmago.newarchitecture.modules; import com.facebook.jni.HybridData; /**
private static volatile boolean sIsSoLibraryLoaded; protected MainApplicationTurboModuleManagerDelegate( protected native HybridData initHybrid(); native boolean canCreateTurboModule(String moduleName); public static class Builder extends ReactPackageTurboModuleManagerDelegate.Builder { @OverRide
cmake_minimum_required(VERSION 3.13) Define the library name here.project(sigmago_appmodules) This file includes all the necessary to let you build your application with the New Architecture.include(${REACT_ANDROID_DIR}/cmake-utils/ReactNative-application.cmake)
Added the below condition after defaultConfig: if (isNewArchitectureEnabled()) {
|
@mhuynh5757 |
Same for me |
Hey all, have you followed the steps outlined in our Getting Started guide? Please see the README of this repo for more information. |
Same here. Please help! |
No description provided.
The text was updated successfully, but these errors were encountered: