我想RapidMiner的JAR庫集成到Android應用程序,但我得到了1個錯誤。整合RapidMiner JAR庫到Android應用
Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/opt/jdk1.7.0_79/bin/java'' finished with non-zero exit value 1
我使用的是Android 5.1
,multiDex啓用。
public void runRapidMiner(){
RapidMiner.setExecutionMode(RapidMiner.ExecutionMode.COMMAND_LINE);
RapidMiner.init();
Process process = null;
try {
process = new Process(new File("/home/patrik/Plocha/mojSrom.rmp"));
process.run();
} catch (IOException e) {
e.printStackTrace();
} catch (XMLException e) {
e.printStackTrace();
} catch (OperatorException e) {
e.printStackTrace();
}
}
有沒有可能,我該如何成功運行此代碼?