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

java.lang.BootstrapMethodError / java.lang.NoClassDefFoundError #948

Closed
zwirne opened this issue Jan 27, 2021 · 1 comment
Closed

java.lang.BootstrapMethodError / java.lang.NoClassDefFoundError #948

zwirne opened this issue Jan 27, 2021 · 1 comment

Comments

@zwirne
Copy link

zwirne commented Jan 27, 2021

Hey,

my project was working well for 4 years with ion, thx for that!
But now I'm facing an "Class not found error" which I do not understand.

When doing this call like in the example:

Ion.with(getContext())
.load(url)
.asString()
.withResponse()
.setCallback(new FutureCallback<Response>() {
@OverRide
public void onCompleted(Exception e, Response result) {
// print the response code, ie, 200
System.out.println(result.getHeaders().code());
// print the String that was downloaded
System.out.println(result.getResult());
}
});

This is the error I'm getting:

java.lang.BootstrapMethodError: Exception from call site #43 bootstrap method
at com.koushikdutta.async.future.SimpleFuture.setCallback(SimpleFuture.java:212)
at com.koushikdutta.ion.IonRequestBuilder.resolveAndLoadRequest(IonRequestBuilder.java:390)
at com.koushikdutta.ion.IonRequestBuilder.getLoaderEmitter(IonRequestBuilder.java:354)
at com.koushikdutta.ion.IonRequestBuilder.getLoaderEmitter(IonRequestBuilder.java:317)
at com.koushikdutta.ion.IonRequestBuilder.execute(IonRequestBuilder.java:690)
at com.koushikdutta.ion.IonRequestBuilder.execute(IonRequestBuilder.java:643)
at com.koushikdutta.ion.IonRequestBuilder.asJsonObject(IonRequestBuilder.java:696)
at com.myproject.wizard.WizardStep1_TownSelection.loadData(WizardStep1_TownSelection.java:117)
at com.myproject.wizard.WizardStep1_TownSelection.onCreate(WizardStep1_TownSelection.java:73)
at android.app.Activity.performCreate(Activity.java:7074)
at android.app.Activity.performCreate(Activity.java:7065)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2796)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2921)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1639)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:6662)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: java.lang.NoClassDefFoundError: Invalid descriptor: LL.
at com.koushikdutta.async.future.SimpleFuture.setCallback(SimpleFuture.java:212) 
at com.koushikdutta.ion.IonRequestBuilder.resolveAndLoadRequest(IonRequestBuilder.java:390) 
at com.koushikdutta.ion.IonRequestBuilder.getLoaderEmitter(IonRequestBuilder.java:354) 
at com.koushikdutta.ion.IonRequestBuilder.getLoaderEmitter(IonRequestBuilder.java:317) 
at com.koushikdutta.ion.IonRequestBuilder.execute(IonRequestBuilder.java:690) 
at com.koushikdutta.ion.IonRequestBuilder.execute(IonRequestBuilder.java:643) 
at com.koushikdutta.ion.IonRequestBuilder.asJsonObject(IonRequestBuilder.java:696) 
at com.myproject.wizard.WizardStep1_TownSelection.loadData(WizardStep1_TownSelection.java:117) 
at com.myproject.wizard.WizardStep1_TownSelection.onCreate(WizardStep1_TownSelection.java:73) 
at android.app.Activity.performCreate(Activity.java:7074) 
at android.app.Activity.performCreate(Activity.java:7065) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2796) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2921) 
at android.app.ActivityThread.-wrap11(Unknown Source:0) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1639) 
at android.os.Handler.dispatchMessage(Handler.java:106) 
at android.os.Looper.loop(Looper.java:176) 
at android.app.ActivityThread.main(ActivityThread.java:6662) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873) 

Do you have any suggestions?

Thanks for your help.
zwirne

@zwirne
Copy link
Author

zwirne commented Feb 23, 2021

The problem was the gradle version.
Solved by changing to 4.0.1 --> #928

@zwirne zwirne closed this as completed Feb 23, 2021
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