I'm building an Android app in which I want to use the ActiveAndroid ORM. In the readme I read instructions on how to include it in Maven or ADT, but I'm using/trying to learn Android Studio with Gradle. So I guess I need to insert ActiveAndroid as a dependency. in my build.gradle file on these lines:
dependencies {
compile 'com.android.support:appcompat-v7:+'
}
I don't really know what kind of string/url I should use so that Gradle can automatically find ActiveAndroid and compile it into my project.
Sicne I'm kinda lost; could anybody give me a tip here on how I should be tackling this?
[EDIT]
I now build the jar and compiled it using the suggested compile files('libs/ActiveAndroid.jar')
(I have no version name in my jar file). It now builds successfully, but I still cannot import classes from it. See the image below:
Download the JAR from this link
OR
}
compile 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
My full build.gradle(app) with ActiveAndroid:
Maybe this is new since this question was answered, but this is in the getting started guide:
Modify your build.gradle to include:
https://github.com/pardom/ActiveAndroid/wiki/Getting-started
configurations.create("default")
def jarFile = file('ActiveAndroid.jar')
artifacts.add("default", jarFile)
Try these steps:
michaelpardo
activeandroid
would have came uplibs
folder and useAdd to library
option from Android StudioGive this a go - download the JAR from here
Add it to your libs folder.
Change your dependancies to look something like this