Android Question AndroidTV and HTTPUtils2

Nickelgrass

Active Member
Licensed User
Longtime User
Hello,
I have a simple app that works on my phone. It just checks if a website is online by downloading it via HttpJob. Now I installed it on my android TV with the B4A bridge. Installing and running works nicly. But the app crashes with "java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpGet;".
How can I solve this? Or can I use something else to check if the page is online?
Thanks
Regards
 

DonManfred

Expert
Licensed User
Longtime User
But the app crashes with "java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpGet;".
ARE you using okhttputils2?
Looks like your are using another version than okhttputils2.

Maybe you are using https://www.b4x.com/android/forum/threads/httputils2-web-services-are-now-even-simpler.18992/ ?

See the 1st sentence in this thread
HttpUtils2 was replaced with OkHttpUtils2: https://www.b4x.com/android/forum/threads/okhttp-replaces-the-http-library.54723/
Both libraries are included in the IDE.

Note that these changes are from 2016 so it´s eight years ago already.
 
Last edited:
Upvote 0
Top