JillAndMe JillAndMe - 2 years ago 156
Android Question

android parse server gradle sync fail

I am new to parse server

I just followed here "http://docs.parseplatform.org/android/guide/"

I added

dependencies {
compile 'com.parse:parse-android:1.15.7'
}


at build.gradle(Module: app)

and wrote

"Parse.initialize(this);"


at MainActivity

but error :


Failed to resolve: com.android.support:support-annotations:25.3.1

Install Repository and sync project,
Open File,
Show In Project Structure dialog


Did I miss something?

Any help would be appreciated ;D
(android studio version : 2.3.3)

apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.example.jack.instagramclone2"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
compile 'com.parse:parse-android:1.15.7'
testCompile 'junit:junit:4.12'
}

Answer Source

Go to SDK Manager, update your Google repository enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download