- Import project in Intellij Idea (not Android studio)
- Import project from external model Gradle
Next -> Finish
- Then you'll receive
Error:SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
Create local.properties file in root directory with following content:
sdk.dir=/Users/yourusername/Library/Android/sdk
If you see problems with gradle, press on gradle menu (tab at the right side) and click on synchronize/refresh button.
Open Project Structure -> Modules. Click + -> Import module -> spoon-client -> Import module from external model Gradle -> Next -> Next.
Do the same procedure for spoon-runner and click Apply.
Open Project Structure -> Artifacts. Click + -> JAR -> From modules with dependencies...
Select spoon-client, leave Main class empty, press OK.
Do the same procedure for spoon-runner. Click Apply -> OK.
Click Build -> Build Artifacts... -> All artifacts.
JARs will be created at the location you have specified in the Artifacts menu.

