how to build realtime-android by gradle

123 views
Skip to first unread message

Sean Moon

unread,
Apr 22, 2015, 12:30:37 AM4/22/15
to goodow-...@googlegroups.com
Hi all. I have problem build realtime-android. 
I use androidstudio tool and tried to build realtime-android by gradle but could not success.

below script is what I set up build.gradle(project) and build.gradle(app)

1. build.gradle(project):

buildscript {
    repositories {
        jcenter()
        maven {
        }

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven {
        }

    }
}
2. build.gradle(app):

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "myApplicationId"
        minSdkVersion 15
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:21.+'
    compile 'com.goodow.realtime:realtime-android:0.5.5-SNAPSHOT'
}

below one is what I got message after build my project

Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
   > Could not find diff_match_patch:diff_match_patch:current.
     Searched in the following locations:
         file:/Users/sean/Library/Android/sdk/extras/android/m2repository/diff_match_patch/diff_match_patch/current/diff_match_patch-current.pom
         file:/Users/sean/Library/Android/sdk/extras/android/m2repository/diff_match_patch/diff_match_patch/current/diff_match_patch-current.jar
         file:/Users/sean/Library/Android/sdk/extras/google/m2repository/diff_match_patch/diff_match_patch/current/diff_match_patch-current.pom
         file:/Users/sean/Library/Android/sdk/extras/google/m2repository/diff_match_patch/diff_match_patch/current/diff_match_patch-current.jar
     Required by:
         MyApp:app:unspecified > com.goodow.realtime:realtime-android:0.5.5-SNAPSHOT > com.goodow.realtime:realtime-channel:0.5.5-SNAPSHOT

Please share me information if anyone solve this issue!!!





田传武

unread,
Apr 22, 2015, 4:15:32 AM4/22/15
to Sean Moon, goodow-...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Goodow Realtime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to goodow-realti...@googlegroups.com.
To post to this group, send email to goodow-...@googlegroups.com.
Visit this group at http://groups.google.com/group/goodow-realtime.
To view this discussion on the web visit https://groups.google.com/d/msgid/goodow-realtime/f8536572-a407-4a9d-95b4-99261f7cb850%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages