Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues and solutions I've taken #16

Open
NetkoNefarious opened this issue Jan 30, 2019 · 4 comments
Open

Issues and solutions I've taken #16

NetkoNefarious opened this issue Jan 30, 2019 · 4 comments

Comments

@NetkoNefarious
Copy link

Foreword: many issues can be fixed by applying certain steps from the Getting Started guide.

  1. No Greeter.java (wrapper code)
    Solution:
  • Download Solicity compiler (check the .sol file for version, currently 0.4.25 is needed for the file) and web3j cli.
  • Follow this guide to generate the Java code you need
  1. Cannot resolve 'ethLogFlowable'
    Solution: add into build.gradle
  • compile ('org.web3j:core:4.1.0') (Java 8)
  • compile ('org.web3j:core:4.1.0-android') (Android)
  1. RxJava dependency missing
    Solution: add into build.gradle
  • implementation "io.reactivex.rxjava2:rxjava:2.x.y"
    With x and y replaced by the version number found here.
@JoaquimLey
Copy link

This seems like a good candidate for a PR :)

@iikirilov
Copy link
Collaborator

  1. The web3j-gradle-plugin will generate the smart-contract wrapper for you when you build the project

  2. and 3. look like separate issues.

@NetkoNefarious
Copy link
Author

NetkoNefarious commented Feb 23, 2019

The web3j-gradle-plugin will generate the smart-contract wrapper for you when you build the project

I didn't know this, I thought you needed the CLI to generate them.

@iikirilov
Copy link
Collaborator

@NetkoNefarious the plugin is relatively new.

Regarding 2. and 3. they should not be issues in a fresh clone on master branch. I believe these are issues unique to your environment.

I see you are developing on android. This sample project is not designed to be an android starter application so some changes are required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants