Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

macOs Catalina: Getting an error when building an application in Android Studio #1332

Open
arkadia84 opened this issue Feb 21, 2020 · 1 comment

Comments

@arkadia84
Copy link

Getting an error when building an application in Android Studio.

  1. command in terminal: make android
  2. copy file Lndmobile.aar to folder android/Lndmobile/
  3. open folder ../mobile/android in Android Studio
  4. start build project
  5. getting an error
error: method start in class Lndmobile cannot be applied to given types;
required: String,Callback,Callback
found: String,LndNativeModule.NativeCallback
reason: actual and formal argument lists differ in length

file: LndNativeModule.java
str: 210

Runnable startLnd = new Runnable() {
            @Override
            public void run() {
                Lndmobile.start(args, new NativeCallback(promise)); // error because function start need 3 params: string, callback, callback
            }
        };

file: Lndmobile.class
str: 118
public static native void start(String var0, Callback var1, Callback var2);

can anyone help me to resolve that problem

@arkadia84 arkadia84 changed the title Error Getting an error when building an application in Android Studio Feb 21, 2020
@arkadia84 arkadia84 changed the title Getting an error when building an application in Android Studio MacOs Catalina: Getting an error when building an application in Android Studio Feb 21, 2020
@arkadia84 arkadia84 changed the title MacOs Catalina: Getting an error when building an application in Android Studio macOs Catalina: Getting an error when building an application in Android Studio Feb 21, 2020
@mrshoikot
Copy link

mrshoikot commented Feb 6, 2021

Same problem on Ubuntu here. Any solution please!

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

No branches or pull requests

2 participants