Hi Frode
I had a look at your project and it is set up to be built by Ant and has a Maven POM configuration file thrown in with artifact references which are pertfect for Gradle. My humble suggestion is to go with Gradle as Google is promoting it along with Android Studio.
Anyway, I downloaded and installed IntelliJ IDEA Community edition to see if I could help provide you some steps to follow to move forward.
My only exposure to IntelliJ IDEA is by the latest release of Android Studio. The look an feel should be familiar to you.
Here is what I did to set up an Android project for an application using the compatibility v7 library (aar).
It will smooth the process if you install the "Android Support Repository" v14 along with API 21 SDK Platfoorm.
1. Create New Project -> Android -> Gradle: Android Module -> Next
2. In "New Project" Window set Java SDK and Android SDK Location and hit Next
3. In the next window is for the Application configuration. Name "myapp"..
4. Tick "Support Mode - Action Bar" box. This will draw in the compatibility v7 library. Next.
5. For activity I selected "Blank Activity with Fragment" as this is what I know works. Next.
6. For "Activity Name" etc just accept defaults. Next. Finish.
7. Wait an enternity for Gradle to be downloaded and installed.
8. The project will build without errors.
The MainActivity class extends
android.support.v7.app.
ActionBarActivity, just as in your sample.
The "magic" of binding the v7 Support Library to the application is done by a single line in the Gradle configuration:
compile 'com.android.support:appcompat-v7:21.+'
This causes the library to be included in the build sourced from the Android Support Repository in the SDK.
Your confusion is understandable as, only Gradle can directly access the Android SDK to import libraries. Other build systems must go about this indirectly.
I have no idea how this is meant to be done with IntelliJ IDEA, but there is are Support Library projects for Eclipse in the SDK.
Maven adds more angst because Google refuses to make library modules available from online respositories.
This is why the
maven-android-sdk-deployer came about. It takes modules from the SDK and places them in the local Maven repository.
If you want to use Maven, then you can configure Gradle to access Maven repositories and reference artifacts in the usual way.
One other little thing. I noticed your AndroidManifest.xml set android:minSdkVersion="21". This does not make sense when using a compatibility library!
Hope this helps.