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

NoSuchMethodError Base #15

Open
Prinstech opened this issue Oct 8, 2022 · 0 comments
Open

NoSuchMethodError Base #15

Prinstech opened this issue Oct 8, 2022 · 0 comments

Comments

@Prinstech
Copy link

Describe the issue

java.lang.NoSuchMethodError: No static method encodeBase64URLSafeString([B)Ljava/lang/String; in class Lorg/apache/commons/codec/binary/Base64; or its super classes (declaration of 'org.apache.commons.codec.binary.Base64' appears in /system/framework/org.apache.http.legacy.jar)
at software.reloadly.sdk.core.internal.net.Telemetry.(Telemetry.java:65)

Steps to Reproduce

Current Behavior

I get above error, when ever I invoke the method to retrieve a Phone Number Network Provider and then whenever I try to top-up a phone number. Below is the full stack trace;

ATAL EXCEPTION: main
Process: com.prinstech.freesair, PID: 7078
java.lang.NoSuchMethodError: No static method encodeBase64URLSafeString([B)Ljava/lang/String; in class Lorg/apache/commons/codec/binary/Base64; or its super classes (declaration of 'org.apache.commons.codec.binary.Base64' appears in /system/framework/org.apache.http.legacy.jar)
at software.reloadly.sdk.core.internal.net.Telemetry.(Telemetry.java:65)
at software.reloadly.sdk.core.internal.util.TelemetryUtil.getTelemetryInterceptor(TelemetryUtil.java:17)
at software.reloadly.sdk.core.internal.net.API.buildClient(API.java:135)
at software.reloadly.sdk.core.internal.net.API.(API.java:78)
at software.reloadly.sdk.core.internal.net.ServiceAPI.(ServiceAPI.java:31)
at software.reloadly.sdk.airtime.client.AirtimeAPI.(AirtimeAPI.java:40)
at software.reloadly.sdk.airtime.client.AirtimeAPI$AirtimeAPIBuilder.build(AirtimeAPI.java:34)
at com.prinstech.freesair.Home$3$1.onDataChange(Home.java:246)
at com.google.firebase.database.core.ValueEventRegistration.fireEvent(ValueEventRegistration.java:75)
at com.google.firebase.database.core.view.DataEvent.fire(DataEvent.java:63)
at com.google.firebase.database.core.view.EventRaiser$1.run(EventRaiser.java:55)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:264)
at android.app.ActivityThread.main(ActivityThread.java:7684)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:507)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)
I/ExceptionHandle: at software.reloadly.sdk.core.internal.net.Telemetry.(Telemetry.java:65)
I/ExceptionHandle: at software.reloadly.sdk.core.internal.util.TelemetryUtil.getTelemetryInterceptor(TelemetryUtil.java:17)
I/ExceptionHandle: at software.reloadly.sdk.core.internal.net.API.buildClient(API.java:135)
I/ExceptionHandle: at software.reloadly.sdk.core.internal.net.API.(API.java:78)
I/ExceptionHandle: at software.reloadly.sdk.core.internal.net.ServiceAPI.(ServiceAPI.java:31)
I/ExceptionHandle: at software.reloadly.sdk.airtime.client.AirtimeAPI.(AirtimeAPI.java:40)
I/ExceptionHandle: at software.reloadly.sdk.airtime.client.AirtimeAPI$AirtimeAPIBuilder.build(AirtimeAPI.java:34)
I/ExceptionHandle: at com.prinstech.freesair.Home$3$1.onDataChange(Home.java:246)
I/ExceptionHandle: at com.google.firebase.database.core.ValueEventRegistration.fireEvent(ValueEventRegistration.java:75)
I/ExceptionHandle: at com.google.firebase.database.core.view.DataEvent.fire(DataEvent.java:63)
I/ExceptionHandle: at com.google.firebase.database.core.view.EventRaiser$1.run(EventRaiser.java:55)
I/ExceptionHandle: at android.os.Handler.handleCallback(Handler.java:883)
I/ExceptionHandle: at android.os.Handler.dispatchMessage(Handler.java:100)
I/ExceptionHandle: at android.os.Looper.loop(Looper.java:264)
I/ExceptionHandle: at android.app.ActivityThread.main(ActivityThread.java:7684)
I/ExceptionHandle: at java.lang.reflect.Method.invoke(Native Method)
I/ExceptionHandle: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:507)
I/ExceptionHandle: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)
I/Process: Sending signal. PID: 7078 SIG: 9

Your Environment

*SDK version: implementation "software.reloadly:java-sdk-authentication:1.0.2"
implementation "software.reloadly:java-sdk-airtime:1.0.2"

  • JDK version: Chipmunk

  • Operating System and version: Am using Android Version 10 for testing and debugging

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

1 participant