I get this error
static interface method calls are not supported at language level 1.7
when having
Web3j web3j = Web3j.build(new HttpService(url));
documentation here says for Android you should use this instead of Web3j.build():
Web3jFactory.build(new HttpService());
But Web3jFactory isn't there. I have no such file for the import that should be (what I found if correct)
import org.web3j.protocol.Web3jFactory;
Here my build.gradle (reduced to relevant information)
apply plugin: 'java'
repositories {
google()
jcenter()
}
dependencies {
implementation 'org.web3j:core:3.3.1-android'
implementation group: 'org.web3j', name: 'infura', version: '3.3.1'
}