hedera-sdk-java
hedera-sdk-java copied to clipboard
driod API 33, ContractFunctionResult using Stream ? tripping up. java.lang.NoSuchMethodError: No interface method toList()Ljava/util/List; in class Ljava/util/stream/Stream
Description
yeah.. kinda at a Client impasse now @Datadamus as unable to use HH SDK to read the Wallet Users profile SC and Query and Execution seem to use Stream dependency and it seems to not get sucked into emulator runtime yet compile build is fine.
" ContractFunctionResult result_1 = new ContractCallQuery() .setGas(30000) .setContractId(existing) .setFunction("getfname") // .setMaxQueryPayment(new Hbar(1)) .execute(USER_ACCOUNT);"
digging deeper .. droid studio, 1.8 compat, compiling for API33.. droid 13.. HH SDK and gRPC is checked - as per github for droid..ok
droid does support java 8 from version 7 Nougat and Stream was in 8. . noted API26 hedera SDK min.
ContractFunctionResult using Stream ? Studio config looks ok. later in thread - copy of gradles.
Process: com.mvp.olarawallet, PID: 10463
java.lang.NoSuchMethodError: No interface method toList()Ljava/util/List; in class Ljava/util/stream/Stream; or its super classes (declaration of 'java.util.stream.Stream' appears in /apex/com.android.art/javalib/core-oj.jar)
at com.hedera.hashgraph.sdk.ContractFunctionResult.
ContractFunctionResult result_1 = new ContractCallQuery() .setGas(5000000) .setContractId(ContractId.fromString(existingcontractid)) .setFunction("getfname") .setMaxQueryPayment(new Hbar(5)) .execute(USER_ACCOUNT);
if (result_1.errorMessage!= null) {
System.out.println("Error calling Contract " + result_1.errorMessage);
return runitdetails;
}
String queryout = result_1.getString(0);
Steps to reproduce
droid build. no probs
Additional context
No response
Hedera network
testnet
Version
sdk and gPRC as in the Hedera repo READme - for droid for java sdk
Operating system
None