Skip to content
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

NoSuchMethodError: com.plivo.endpoint.backend.plivoJNI in swig_module_init #49

Closed
abhinavsingh opened this issue Mar 3, 2024 · 5 comments

Comments

@abhinavsingh
Copy link

We are getting the following in release build only and app crashes immediately on startup (since we have endpoint login around startup code)

NoSuchMethodError
no static method "Lcom/plivo/endpoint/backend/plivoJNI;.SwigDirector_PlivoAppCallback_onStarted(Lcom/plivo/endpoint/backend/PlivoAppCallback;Ljava/lang/String;)V"

I was suspecting missing proguard definitions but I didn't find any in the example Android project either.

Wondering whats going wrong and how to fix it.

NOTE: This works fine in debug and profile mode

@abhinavsingh
Copy link
Author

jFYI, I am using implementation 'com.plivo.endpoint:endpoint:2.0.19

with implementation 'com.plivo.endpoint:endpoint:3.0.1-beta.2' I get the following during build time

error: cannot find symbol
            outgoing.callH(call.getString("phoneNumber"), headers);
                    ^
  symbol:   method callH(String,HashMap<String,String>)
  location: variable outgoing of type Outgoing

@abhinavsingh
Copy link
Author

If I just use outgoing.call with 3.0.1-beta.2, I then start getting

error: no suitable method found for newInstance(boolean,EventListener)
            endpoint = Endpoint.newInstance(false, kPlivoCallListener);
                               ^
    method Endpoint.newInstance(Context,boolean,EventListener) is not applicable
      (actual and formal argument lists differ in length)
    method Endpoint.newInstance(Context,boolean,EventListener,HashMap) is not applicable
      (actual and formal argument lists differ in length)

during build time

@shivmanish
Copy link

is any update on above issue? i also facing above

@Shashwatjxl
Copy link

is there any update, not able to release the app because of this issue

@markandrewjaxl
Copy link

Facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants