Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle Dependency #2

Open
CDandu16 opened this issue Jun 7, 2015 · 7 comments
Open

Gradle Dependency #2

CDandu16 opened this issue Jun 7, 2015 · 7 comments
Assignees

Comments

@CDandu16
Copy link

CDandu16 commented Jun 7, 2015

Does the Gradle Dependency not work? It doesn't seem to recognize the source.

@cbdonohue
Copy link

It doesn't work. You have to import the project as a module in Android
Studio. You may have to make some changes to the projects gradle file to
get the import to be successful.

On Sun, Jun 7, 2015, 12:54 AM CDandu16 [email protected] wrote:

Does the Gradle Dependency not work? It doesn't seem to recognize the
source.


Reply to this email directly or view it on GitHub
#2.

@chrismetcalf
Copy link
Contributor

@cbdonohue Any insight into what needs to be updated in the gradle file? Glad to help figure out what needs fixing here.

@chrismetcalf chrismetcalf self-assigned this Jun 11, 2015
@peacefulhuman
Copy link

Any luck with the gradle dependency? I have been trying to add this API to my project and can't seem to get it to work. If the gradle dependency doesn't work, is there a way to make this an Android library instead of a project?

@cbdonohue
Copy link

cbdonohue commented Jan 4, 2017

Clone or download the project into a directory. Then create a new Android project and import the soda-android-sdk module.

I had to make the following changes to the build.gradle for the soda-android-sdk module:

buildscript {
    repositories {
        maven { url 'http://repo1.maven.org/maven2' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.0'
    }
}

apply plugin: 'com.android.library'

dependencies {
    compile files('libs/android-async-http-1.4.2-66-g4b6eb97.jar')
    compile 'com.android.support:appcompat-v7:25.1.0'
    compile 'com.google.android.gms:play-services:10.0.1'
}

android {
    compileSdkVersion 25
    buildToolsVersion '25.0.1'

    defaultConfig {
        minSdkVersion 19
        targetSdkVersion 25
        testApplicationId "com.socrata.android.tests"
    }
}

You may also have to add the following to the Application tag of your manifest so it merges manifests correctly:

xmlns:tools="http://schemas.android.com/tools"
tools:replace="android:icon"

In your new application's build.gradle you will have to include the other module as a dependency:
compile project(':soda-android-sdk')

I'm using Android Studio 2.3 Beta 1

@oscody
Copy link

oscody commented Nov 21, 2017

how do i import the soda-android-sdk module.

@zeuslawyer
Copy link

Hi all
Am i missing something or does the README's instructions not work> I'm new to programming and android and SODA. The instruction on adding 'com.socrata:android-soda-client:1.0-SNAPSHOT' to the app/module build.gradle doesnt work for me on android studio.

all help gratefully accepted!

@cbdonohue
Copy link

Updated to run on Android 3.5 #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants