Nickelgrass Active Member Licensed User Longtime User Jul 16, 2025 #1 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
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 Jul 16, 2025 #2 Nickelgrass said: But the app crashes with "java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpGet;". Click to expand... 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. Click to expand... Note that these changes are from 2016 so it´s eight years ago already. Last edited: Jul 16, 2025 Upvote 0
Nickelgrass said: But the app crashes with "java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpGet;". Click to expand... 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. Click to expand... Note that these changes are from 2016 so it´s eight years ago already.
Nickelgrass Active Member Licensed User Longtime User Jul 16, 2025 #3 DonManfred said: 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 Note that these changes are from 2016 so it´s eight years ago already. Click to expand... Thanks! Upvote 0
DonManfred said: 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 Note that these changes are from 2016 so it´s eight years ago already. Click to expand... Thanks!