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.NoSuchMethodError: No static method consume()V in class EntityUtils #48

Open
bigboss97 opened this issue Sep 19, 2021 · 2 comments

Comments

@bigboss97
Copy link

I’m using Processing 3.5.4 on Windows 10. I’ve created a script using HTTP Requests library. Everything works fine.
Now I’m trying to run the script on my Android phone with APDE v0.5.1. I've installed httprequests_processing.zip and receive following error. Any advice?

Thread-8686(ApacheHTTPLog):Reading from variable values from setDefaultValuesToVariables
Thread-8686(ApacheHTTPLog):isSBSettingEnabled false
Thread-8686(ApacheHTTPLog):isShipBuild true
Thread-8686(ApacheHTTPLog):getDebugLevel 0x4f4c
Thread-8686(ApacheHTTPLog):Smart Bonding Setting is false
Thread-8686(ApacheHTTPLog):SmartBonding Setting is false, SHIP_BUILD is true, log to file is false, DBG is false, DEBUG_LEVEL (1-LOW, 2-MID, 3-HIGH) is 1
Animation Thread calls detatch()
java.lang.NoSuchMethodError: No static method consume(Lorg/apache/http/HttpEntity;)V in class Lorg/apache/http/util/EntityUtils; or its super classes (declaration of 'org.apache.http.util.EntityUtils' appears in /system/framework/org.apache.http.legacy.jar)
	at http.requests.PostRequest.send(Unknown Source:209)
@hillmark
Copy link

hillmark commented Feb 3, 2022

I had a similar problem and although not ideal I switched to okhttp which seems to be working well.

@bigboss97
Copy link
Author

I've changed my approach. Instead of running the sketch on the Processing phone app, I compile it on Windows in Android mode and using USB cable to run my compiled app on phone. All good now.

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

2 participants