R rosippc64a Active Member Licensed User Longtime User Mar 20, 2024 #1 Hi All, I have an interesting error found in my test app in #if JAVA section, that I have never seen before. The error: B4A Version: 12.80 Parsing code. (0.00s) Java Version: 11 Building folders structure. (0.02s) Compiling code. (0.00s) Compiling layouts code. (0.01s) Organizing libraries. (0.00s) (AndroidX SDK) Compiling resources (0.05s) Linking resources (0.56s) Compiling generated Java code. Error src\b4a\example\raficlass.java:292: error: cannot find symbol (val, time) -> timeout - val) ^ symbol: method metafactory(Lookup,String,MethodType,MethodType,MethodHandle,MethodType) location: interface LambdaMetafactory 1 error Fatal Error: Unable to find method metafactory javac 11.0.1 Click to expand... The code fragment: code: private void startTimer(int timeout) { stopTimer(); BA.Log("startTimer: creating"); timerDispose = Observable.zip( Observable.range(0, timeout + 1), Observable.interval(0, 1, TimeUnit.SECONDS), (val, time) -> timeout - val) .observeOn(Schedulers.io()) .doOnNext(val -> log.info("timer is {}", val)) .doOnNext(transactionTimeout::onNext) .subscribe(transactionTimeout::onNext, this::onTimeoutFailed, this::onEcrTimeout); } Has anyone encountered error like this?
Hi All, I have an interesting error found in my test app in #if JAVA section, that I have never seen before. The error: B4A Version: 12.80 Parsing code. (0.00s) Java Version: 11 Building folders structure. (0.02s) Compiling code. (0.00s) Compiling layouts code. (0.01s) Organizing libraries. (0.00s) (AndroidX SDK) Compiling resources (0.05s) Linking resources (0.56s) Compiling generated Java code. Error src\b4a\example\raficlass.java:292: error: cannot find symbol (val, time) -> timeout - val) ^ symbol: method metafactory(Lookup,String,MethodType,MethodType,MethodHandle,MethodType) location: interface LambdaMetafactory 1 error Fatal Error: Unable to find method metafactory javac 11.0.1 Click to expand... The code fragment: code: private void startTimer(int timeout) { stopTimer(); BA.Log("startTimer: creating"); timerDispose = Observable.zip( Observable.range(0, timeout + 1), Observable.interval(0, 1, TimeUnit.SECONDS), (val, time) -> timeout - val) .observeOn(Schedulers.io()) .doOnNext(val -> log.info("timer is {}", val)) .doOnNext(transactionTimeout::onNext) .subscribe(transactionTimeout::onNext, this::onTimeoutFailed, this::onEcrTimeout); } Has anyone encountered error like this?
walterf25 Expert Licensed User Longtime User Mar 20, 2024 #2 rosippc64a said: Hi All, I have an interesting error found in my test app in #if JAVA section, that I have never seen before. The error: The code fragment: code: private void startTimer(int timeout) { stopTimer(); BA.Log("startTimer: creating"); timerDispose = Observable.zip( Observable.range(0, timeout + 1), Observable.interval(0, 1, TimeUnit.SECONDS), (val, time) -> timeout - val) .observeOn(Schedulers.io()) .doOnNext(val -> log.info("timer is {}", val)) .doOnNext(transactionTimeout::onNext) .subscribe(transactionTimeout::onNext, this::onTimeoutFailed, this::onEcrTimeout); } Has anyone encountered error like this? Click to expand... You might be missing some dependencies. Upvote 0
rosippc64a said: Hi All, I have an interesting error found in my test app in #if JAVA section, that I have never seen before. The error: The code fragment: code: private void startTimer(int timeout) { stopTimer(); BA.Log("startTimer: creating"); timerDispose = Observable.zip( Observable.range(0, timeout + 1), Observable.interval(0, 1, TimeUnit.SECONDS), (val, time) -> timeout - val) .observeOn(Schedulers.io()) .doOnNext(val -> log.info("timer is {}", val)) .doOnNext(transactionTimeout::onNext) .subscribe(transactionTimeout::onNext, this::onTimeoutFailed, this::onEcrTimeout); } Has anyone encountered error like this? Click to expand... You might be missing some dependencies.
DonManfred Expert Licensed User Longtime User Mar 21, 2024 #3 rosippc64a said: The code fragment Click to expand... you can not use Lambda in b4x Compile the code with Android Studio and use the jar then Upvote 0
rosippc64a said: The code fragment Click to expand... you can not use Lambda in b4x Compile the code with Android Studio and use the jar then