Android - Adding external library to project

后端 未结 2 1988
礼貌的吻别
礼貌的吻别 2021-01-12 08:12

I am having a lot of trouble adding the WEKA library to a project I am working on. I have followed several tutorials that explain how to do this including the Android Develo

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-12 08:22

    WEKA is not going to work on Android without changes. J48, for example, requires the java.lang.Cloneable interface, which is not available in Android.

    What you need to do is check out the WEKA source code from Subversion, add it to your project (removing the JAR file), compile it, and fix all the compile errors. There may be quite a few of these.

提交回复
热议问题