M Marco Gioia Member Licensed User Jun 4, 2018 #1 Hello everyone, I got this error: package com.squareup.okhttp does not exist B4J Version: 6.30 Parsing code. (0.06s) Compiling code. (0.20s) Compiling layouts code. (0.01s) Organizing libraries. (0.00s) Compiling generated Java code. Error javac 1.8.0_144 src\b4j\example\main.java:16: error: package com.squareup.okhttp does not exist import com.squareup.okhttp.Authenticator; ^ 1 error Where can I find a link to download the package? Thanks
Hello everyone, I got this error: package com.squareup.okhttp does not exist B4J Version: 6.30 Parsing code. (0.06s) Compiling code. (0.20s) Compiling layouts code. (0.01s) Organizing libraries. (0.00s) Compiling generated Java code. Error javac 1.8.0_144 src\b4j\example\main.java:16: error: package com.squareup.okhttp does not exist import com.squareup.okhttp.Authenticator; ^ 1 error Where can I find a link to download the package? Thanks
DonManfred Expert Licensed User Longtime User Jun 4, 2018 #2 add jokhttputils to your project. Upvote 0
M Marco Gioia Member Licensed User Jun 4, 2018 #3 ok thanks , and what about the next one? class file for okhttp3.OkHttpClient not found 1 error Upvote 0
DonManfred Expert Licensed User Longtime User Jun 4, 2018 #5 https://www.b4x.com/android/forum/threads/okhttputils2.62105/ Upvote 0
M Marco Gioia Member Licensed User Jun 4, 2018 #6 DonManfred said: Again: add jokhttputils Click to expand... Sorry, I added and the error came afterwards Upvote 0
DonManfred said: Again: add jokhttputils Click to expand... Sorry, I added and the error came afterwards
DonManfred Expert Licensed User Longtime User Jun 4, 2018 #7 I dont know what you are doing. It is working in a lot of B4J Apps from me. Upload a small project which shoes the issue. Upvote 0
I dont know what you are doing. It is working in a lot of B4J Apps from me. Upload a small project which shoes the issue.
M Marco Gioia Member Licensed User Jun 4, 2018 #8 DonManfred said: I dont know what you are doing. It is working in a lot of B4J Apps from me. Upload a small project which shoes the issue. Click to expand... And if you remove the comment... B4J Version: 6.30 Parsing code. (0.00s) Compiling code. Error Error compiling program. Error description: Unknown member: hc Error occurred on line: 22 Jo.RunMethod("SetNTLM", Array("username", "password", "domain", "workstation", HttpUtils2Service.hc)) 'replace the values Word: hc Attachments NTLM_TEST.zip 1.6 KB · Views: 324 Last edited: Jun 4, 2018 Upvote 0
DonManfred said: I dont know what you are doing. It is working in a lot of B4J Apps from me. Upload a small project which shoes the issue. Click to expand... And if you remove the comment... B4J Version: 6.30 Parsing code. (0.00s) Compiling code. Error Error compiling program. Error description: Unknown member: hc Error occurred on line: 22 Jo.RunMethod("SetNTLM", Array("username", "password", "domain", "workstation", HttpUtils2Service.hc)) 'replace the values Word: hc
DonManfred Expert Licensed User Longtime User Jun 4, 2018 #9 I can´t help you with your inline java. Usually one uses httpjob to communicate with a Service. No inline java needed at all. In b4j there is no httputilsservice like in B4A. You probably need to add a reference to the okhttp jar(s) and use the correct import WITHOUT trying to use the B4J Client. I can´t help any further. Upvote 0
I can´t help you with your inline java. Usually one uses httpjob to communicate with a Service. No inline java needed at all. In b4j there is no httputilsservice like in B4A. You probably need to add a reference to the okhttp jar(s) and use the correct import WITHOUT trying to use the B4J Client. I can´t help any further.
M Marco Gioia Member Licensed User Jun 4, 2018 #10 Do you have an example for b4j? I need to use NTLM and I found an example here: B4J Question Integrated Windows Authentication, NTLMv2 solution? https://www.b4x.com/android/forum/threads/integrated-windows-authentication-ntlmv2-solution.66790/ Upvote 0
Do you have an example for b4j? I need to use NTLM and I found an example here: B4J Question Integrated Windows Authentication, NTLMv2 solution? https://www.b4x.com/android/forum/threads/integrated-windows-authentication-ntlmv2-solution.66790/
Erel B4X founder Staff member Licensed User Longtime User Jun 5, 2018 #11 That is a B4J example. You need to modify OkHttpUtils2 source code as explained and add a reference to jOkHttp. Upvote 0
That is a B4J example. You need to modify OkHttpUtils2 source code as explained and add a reference to jOkHttp.