的Android新秀在這裏,我想使用IBM Bluemix /屈臣氏VisualRecognition在Android工作室,並收到錯誤爲:Bluemix /華生在Android(的VerifyError)
java.lang.VerifyError: com/ibm/watson/developer_cloud/util/CredentialUtils
at com.ibm.watson.developer_cloud.service.WatsonService.(WatsonService.java:99)
at com.ibm.watson.developer_cloud.visual_recognition.v3.VisualRecognition.(VisualRecognition.java:88)
VisualRecognition service = new VisualRecognition(VisualRecognition.VERSION_DATE_2016_05_19);
service.setApiKey("XXXXXXXXXX");
ClassifyImagesOptions options = new ClassifyImagesOptions.Builder()
.images(new File("src/main/res/drawable/img_dummy.png"))
.build();
VisualClassification result = service.classify(options).execute();
一切正常,包括連接到bluemix應用程序,但崩潰,因爲它達到VisualRecognition
有什麼建議嗎?
你可以添加你試過的代碼產生這個錯誤嗎? –