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!!!