Java Question java.lang.NoClassDefFoundError: Failed resolution of: Lcom/facepp/http/HttpRequests;

DonManfred

Expert
Licensed User
Longtime User
i´m writing a wrapper for face++ using the jar they provide.

the example shows the use of a HttpRequests wrapper
B4X:
Open Declaration com.facepp.http.HttpRequests
request to faceplusplus.com
new HttpRequests(apiKey, apiSecret).request("detection", "detect", postParameters)
new HttpRequests(apiKey, apiSecret).train()

Since:
1.0.0
Version:
1.2.0

B4X:
    new Thread(new Runnable() {
            public void run() {
                HttpRequests httpRequests = new HttpRequests("api_key", "api_secret");

The wrapper compiles fine with slc but when i want to use it in a b4a project i got the above error

I tried
B4X:
import com.facepp.http.*s;
import com.facepp.error.*;
import com.facepp.result.*;
and
B4X:
import com.facepp.http.HttpRequests;
import com.facepp.http.PostParameters;
import com.facepp.error.FaceppParseException;
import com.facepp.result.FaceppResult;

Everytime the same result.
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
@DependsOn(values={"faceplusplus"})
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…