Include Java project as library

后端 未结 9 1924
眼角桃花
眼角桃花 2021-02-10 13:48

I have three projects in my eclipse workspace:

EventKitchenCore
EventKitchenDesktop
EventKitchenAndroid

EventKitchenCore contains

9条回答
  •  忘掉有多难
    2021-02-10 14:29

    If all you want is to reference the Core projects code, then in Eclipse you can just reference this project from the Android project. (The 'library project' feature is only to Android library projects, you just have a normal Java project here, right?)

    So in your Package Explorer you have all three (Core, Android and Desktop) projects. Right click EventKitchenAndroid and select Properties. Choose Java Build Path -> Project tab and click the Add... button. Choose EventKitchenCore. Go to the Order & Export tab and make sure the EventKitchenCore project is checked and you're good to go. Any change to the source of EventKitchenCore is immediatedly available to the Android project.

提交回复
热议问题