Java 使用非0退出状态
05-23 15:14:05.682 25157-25157/com.abhishek.speechtotextapp W/art:execv失败(/system/bin/dex2oat--runtime arg-classpath--runtime arg-Xms64m--runtime arg-Xmx512m--instruction set variant=krait--instruction set features=smp,div,atomic_ldrd_strd--runtime arg-Xrelocate--boot image=/system/framework/boot.art--runtime arg Xms64m--xmxmx512--instruction set variant=krait--instruction set features=default--dex file=/data/.abhishek.speechtotextapp-2/split_lib_slice_8_apk.apk--oat file=/data/dalvik cache/arm/data@app@com.abhishek.speechtotextapp-2@split_lib_slice_8_apk.apk@类。dex),因为非0退出状态 05-23 15:14:05.721 25157-25157/com.abhishek.speechtotextapp W/art:execv失败(/system/bin/dex2oat--runtime arg-classpath--runtime arg-Xms64m--runtime arg-Xmx512m--instruction set variant=krait--instruction set features=smp,div,atomic_ldrd_strd--runtime arg-Xrelocate--boot image=/system/framework/boot.art--runtime arg Xms64m--xmxmx512--instruction set variant=krait--instruction set features=default--dex file=/data/.abhishek.speechtotextapp-2/split_lib_slice_9_apk.apk--oat file=/data/dalvik cache/arm/data@app@com.abhishek.speechtotextapp-2@split_lib_slice_9_apk.apk@类。dex),因为非0退出状态 05-23 15:14:05.722 25157-25157/com.abhishek.speechtotextapp W/System:ClassLoader引用的未知路径:/data/app/com.abhishek.speechtotextapp-2/lib/arm 05-23 15:14:05.727 25157-25157/com.abhishek.speechtotextapp I/InstantRun:启动即时运行服务器:是主进程 05-23 15:14:05.757 25157-25157/com.abhishek.speechtotextapp I/CredentialUtils:JNDI字符串查找不可用 05-23 15:14:05.890 25157-25331/com.abhishek.speechtotextapp D/OpenGLRenderer:使用EGL交换行为保存:true ?05-23 15:14:05.932 25157-25331/com.abhishek.speechtotextapp I/Adreno EGL::EGL 1.4高通公司构建:非确定性的(Ia6c73e7530) OpenGL ES着色器编译器版本:E031.29.00.00 建造日期:2015年4月12日星期五 本地分行:mybranch17080070 远程分支机构:quic/LA.BF.1.1.3_rb1.5 本地修补程序:无 重建分支:没有 05-23 15:14:05.933 25157-25331/com.abhishek.speechtotextapp I/OpenGLRenderer:初始化EGL,版本1.4 05-23 15:14:14.628 25157-25881/com.abhishek.speechtotextapp W/art:void okhttp3.HttpUrl.canonicalize(okio.Buffer,java.lang.String,int,int,java.lang.String,boolean,boolean,boolean,boolean)的验证耗时114.407ms 05-23 15:14:16.233 25157-25881/com.abhishek.speechtotextapp D/OkHttp:-->POST http/1.1(16字节正文)Java 使用非0退出状态,java,android,ibm-cloud,ibm-watson,tone-analyzer,Java,Android,Ibm Cloud,Ibm Watson,Tone Analyzer,05-23 15:14:05.682 25157-25157/com.abhishek.speechtotextapp W/art:execv失败(/system/bin/dex2oat--runtime arg-classpath--runtime arg-Xms64m--runtime arg-Xmx512m--instruction set variant=krait--instruction set features=smp,div,atomic_ldrd_strd--runtime a
05-23 15:14:16.942 25157-25881/com.abhishek.speechtotextapp D/OkHttp:我想看看下面的问题:
这似乎是一个已修复的已知问题,但尚未发布。在您等待将修复程序发布到Maven时,建议使用更新快照版本的解决方法。我尝试了该方法,但不起作用。
private class cognitiveService extends AsyncTask<Void, Void, Void> {
ToneAnalyzer service = new ToneAnalyzer(ToneAnalyzer.VERSION_DATE_2016_05_19);
service.setUsernameAndPassword("<username>", "<password>");
@Override
protected Void doInBackground(Void... params) {
try {
runOnUiThread(new Runnable() {
@Override
public void run() {
txtOutput.setText("analyzing tone");
}
});
ToneAnalysis tone = service.getTone(txt, null).execute();
System.out.println("Tone: " + tone);
} catch (final Exception e) {
runOnUiThread(new Runnable() {
@Override
public void run() {
txtOutput.setText(e.getLocalizedMessage());
}
});
}
return null;
}
@Override
protected void onPostExecute(Void result) {
super.onPostExecute(result);
}
}
}