Android中使用web3j时出现内存溢出错误:OutOfMemoryError
在使用Android和web3j开发时出现了内存溢出错误的异常情况即OutOfMemoryError。 我正在试着在Android应用程序中集成web3j。但是,在加载以太坊钱包文件时,库提供了一个内存不足的异常: Credentials credentials = WalletUtils.loadCredentials("password", walletFile) 异常exception是这么说的: java.lang.OutOfMemoryError: Failed to allocate a 268435468 byte allocation with 8050708 free bytes and 244MB until OOM 问题可能在这里: //com.lambdaworks.crypto.SCrypt#scryptJ byte[] V = new byte[128 * r * N]; // r: 8, N: 262144, V = byte[268435456] 我知道可以加载credentials,因为另一个项目在Ether Wallet使用web3j,并能够加载相同...