lightninglabs / lightning-app

An easy-to-use cross-platform Lightning wallet
GNU General Public License v3.0
898 stars 172 forks source link

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

Open arkadia84 opened 4 years ago

arkadia84 commented 4 years ago

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

mrshoikot commented 3 years ago

Same problem on Ubuntu here. Any solution please!