web3j/sample-project-gradle

3.1.1 gradle issue

bhavinchauhanios opened this issue · 5 comments

After using 3.1.1-android, error occured as below when building time.

Error:(24, 32) error: cannot find symbol method build(HttpService)
111

@chauhan9909 , I got the same issue as above before remembering that I had read some docs earlier that said we should use:

Web3j web3 = Web3jFactory.build(new HttpService()); // defaults to http://localhost:8545/

for android.

Maybe @conor10 could be so kind as to compile an Android version of the project so less people are stuck on trivial issues such as this. But if not, I totally understand since there are docs for it.

Thanks @Abasifreke , you save my times.