I've been trying to move from Eclipse to Android Studio, but as many others i've come across issues with dependencies. I was hoping for someone with more experience with IntelliJ to help me out here.
I've got a working app (in Eclipse) with some simple dependencies, mostly stand-alone jars which were easily ported. In time, I might replace these with Gradle/Maven but for now the Jars will do.
However, I also had NumericPageIndicator as a library project, which in turn Jake Wharton's Android-ViewPagerIndicator which also was a library project.
It's this library, that I can't seem to import.
I've tried adding it as a simple Maven dependency:
- First only NumericPageIndicator: compile 'com.github.manuelpeinado.numericpageindicator:library:1.1.1'
- And secondly also with Android-ViewPagerIndicator: compile 'com.viewpagerindicator:library:2.4.1'
Both resulting in compile errors indicating that these libraries do not get included (properly).
I'm also not seeing either of these 2 Maven imports under the 'External Libraries' header. I do see them when going to Project structure -> Modules -> Dependencies
under the list of jars.
My whole gradle file at the moment is this:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
android {
compileSdkVersion 19
buildToolsVersion '19.0.0'
defaultConfig {
minSdkVersion 14
targetSdkVersion 19
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
buildTypes {
release {
runProguard false
proguardFile getDefaultProguardFile('proguard-android.txt')
}
}
productFlavors {
defaultFlavor {
proguardFile 'proguard-rules.txt'
}
}
}
dependencies {
compile files('src/main/libs/android-support-v4.jar')
compile files('src/main/libs/commons-io-1.3.2.jar')
compile files('src/main/libs/commons-lang3-3.1.jar')
compile files('src/main/libs/gson-2.2.2.jar')
compile files('src/main/libs/picasso-1.0.2.jar')
compile files('src/main/libs/robospice-1.4.1-SNAPSHOT.jar')
compile files('src/main/libs/robospice-cache-1.4.1-SNAPSHOT.jar')
compile files('src/main/libs/robospice-ormlite-1.4.1-SNAPSHOT.jar')
compile files('src/main/libs/robospice-spring-android-1.4.1-SNAPSHOT.jar')
compile files('src/main/libs/spring-android-core-1.0.1.RELEASE.jar')
compile files('src/main/libs/spring-android-rest-template-1.0.1.RELEASE.jar')
compile files('src/main/libs/twitter4j-async-3.0.3.jar')
compile files('src/main/libs/twitter4j-core-3.0.3.jar')
compile files('src/main/libs/twitter4j-examples-3.0.3.jar')
compile files('src/main/libs/twitter4j-media-support-3.0.3.jar')
compile files('src/main/libs/twitter4j-stream-3.0.3.jar')
compile files('src/main/libs/ormlite-android-4.45.jar')
compile files('src/main/libs/ormlite-core-4.45.jar')
compile 'com.github.manuelpeinado.numericpageindicator:library:1.1.1'
compile 'com.viewpagerindicator:library:2.4.1'
}