← All archived writing

web3j Android port now available for Ethereum

Originally published on conorsvensson.com. View saved original ↗

After announcing the 1.0 milestone of web3j, it was clear that there was demand for an Android port of web3j.

As of the latest release - 1.0.5 of web3j, I am publishing Java 1.6 (i.e. Android) compatible releases. The first Android release is available here, and the artefacts are available on JFrog's Bintray and Maven's Nexus repositories:

<dependency>
  <groupId>org.web3j</groupId>
  <artifactId>core-android</artifactId>
  <version>1.0.5</version>
</dependency>
compile ('org.web3j:core-android:1.0.5')

The API is nearly identical to the existing API, with one small difference - you need to use a Web3jFactory to create your client instance:

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

You can use the web3j command line tools for generating your smart contract wrappers (the generated code is also Android compatible).

For further release notes, please head to the 1.0.5-android release page.

Cite this post

Conor Svensson (14 November 2016). web3j Android port now available for Ethereum. https://conorsvensson.com/archive/conorsvensson/web3j-android-port-now-available/

BibTeX
@misc{svensson2016-web3j-android-port-now-available,
  author = {Conor Svensson},
  title = {{web3j Android port now available for Ethereum}},
  year = {2016},
  month = nov,
  url = {https://conorsvensson.com/archive/conorsvensson/web3j-android-port-now-available/}
}