xrpdevs
xrpdevs

Reputation: 21

Unable to instantiate XrplClient object (Android Studio)

I'm just getting started with XRPL4J, and have an issue:

HttpUrl rippledUrl = HttpUrl.get("https://s.altnet.rippletest.net:51234/");

XrplClient xrplClient = new XrplClient(rippledUrl);

I get an error:

java.lang.IllegalStateException: java.lang.NoSuchFieldException: No field IMPL_LOOKUP in class Ljava/lang/invoke/MethodHandles$Lookup; (declaration of 'java.lang.invoke.MethodHandles$Lookup' appears in /apex/com.android.runtime/javalib/core-oj.jar)

Any pointers would be useful - I'm using v2.0.0 of the libraries.

Sorry for the noobish question - just wasn't able to find much useful by searching.

Upvotes: 2

Views: 173

Answers (1)

xrpdevs
xrpdevs

Reputation: 21

Fixed. Was an Android incompatibility in feign-core / DefaultMethodHandler.java

PR submitted.

My fork: https://github.com/xrpdevs/feign

HTH some Android developers out there!

Upvotes: 0

Related Questions