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

[Android] No signature of method #380

Open
3 tasks done
oleksiiSevrukovRedvike opened this issue Jun 26, 2024 · 6 comments
Open
3 tasks done

[Android] No signature of method #380

oleksiiSevrukovRedvike opened this issue Jun 26, 2024 · 6 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@oleksiiSevrukovRedvike
Copy link

oleksiiSevrukovRedvike commented Jun 26, 2024

Issue

Pre-submission Checklist

  • I have verified that the issue occurs with the latest release and is not marked as a known issue in the CHANGELOG.md.
  • I reviewed the Common Issues and open GitHub issues and verified that this report represents a potentially new issue.
  • I am not sharing any Personally Identifiable Information (PII)
    or sensitive account information (API keys, credentials, etc.) when reporting this issue.

Description

I've added twilio-voice-react-native and I can't sync android project now. I get error

A problem occurred evaluating project ':twilio_voice-react-native-sdk'.
> No signature of method: build_bawhh4j7dlbd0hfyx0jm5xngf.android() is applicable for argument types: (build_bawhh4j7dlbd0hfyx0jm5xngf$_run_closure1) values: [build_bawhh4j7dlbd0hfyx0jm5xngf$_run_closure1@230732e0]

Reproduction Steps

  1. Install twilio-voice-react-native
  2. Press "Sync Project with Gradle Files"
  3. See error

Expected Behavior

Android project can be synced

Actual Behavior

I get error on sync step

Reproduction Frequency

100%

Software and Device Information

Please complete the following information.

  • React version: [17.0.1]
  • React Native version: [0.64.0]
  • Node version: [16.20.2]
  • yarn version: [1.22.19]
  • twilio [3.72.0]
  • @twilio/conversations [2.1.0]
  • @twilio/voice-react-native-sdk [1.0.0]
  • @react-native-firebase/app [20.1.0]
  • @react-native-firebase/firestore [20.1.0]
  • @react-native-firebase/messaging [20.1.0]
  • java [15.0.10] (azul-15)
  • com.android.tools.build:gradle [4.1.0]
  • com.google.gms:google-services [4.3.15]
  • minSdkVersion [21]
  • compileSdkVersion [33]
  • targetSdkVersion [33]
  • ndkVersion [23.1.7779620]
  • kotlinVersion [1.8.10]
  • buildToolsVersion [33.0.0]
@mhuynh5757
Copy link
Collaborator

Hi @oleksiiSevrukovRedvike thanks for reaching out. The version details and issue description are much appreciated, thank you. Just to confirm, you were able to build and run your app before installing the Twilio RN SDK as a dependency? And you only started to see this sync issue after you installed the library? Could you try doing a gradle clean using Android Studio, and attempt to build again? If that fails, could you try to remove your node_modules folder, do a clean yarn install, and try building again?

@oleksiiSevrukovRedvike
Copy link
Author

Hi @mhuynh5757!
Yes, previously sync and build were successful without Twilio RN SDK.
Yes, this error appears only after installation of Twilio RN SDK.
Gradle clean didn't helped.
Remove node_modules folder and clean yarn install didn't helped too.

@oleksiiSevrukovRedvike
Copy link
Author

@mhuynh5757 if I remove namespace 'com.twiliovoicereactnative' from build.gradle sync is successful
But when I try to make build I get error error: package android.app does not exist in VoiceApplicationProxy.java:8 so it can't import android.app.Application;

@oleksiiSevrukovRedvike
Copy link
Author

@mhuynh5757 if I change JavaVersion.VERSION_11 to JavaVersion.VERSION_1_8 build is successful but I get crash immediately with error java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/collections/CollectionsKt;
I have downgraded firebase libraries to versions where they use JavaVersion.VERSION_1_8, but do you have releases with JavaVersion.VERSION_1_8 ?

@mhuynh5757
Copy link
Collaborator

Hi @oleksiiSevrukovRedvike thanks for providing more info. Apologies for the delayed response, we'll take a look at this issue as soon as we can.

@oleksiiSevrukovRedvike
Copy link
Author

@mhuynh5757 I've solved this issue by upgrading react native in our project to 72 and now it's building. So probably you need to update docs with minimal react native version support, which support JavaVersion.VERSION_11

@mhuynh5757 mhuynh5757 added the documentation Improvements or additions to documentation label Aug 21, 2024
@mhuynh5757 mhuynh5757 self-assigned this Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants