android 解析服务器 gradle 同步失败
android parse server gradle sync fail
我是解析服务器的新手。我刚刚关注这里“http://docs.parseplatform.org/android/guide/”
我在 build.gradle
中添加了以下依赖项
dependencies {
compile 'com.parse:parse-android:1.15.7'
}
我初始化了 MainActivity
Parse.initialize(this);
它给我一个错误:
Failed to resolve: com.android.support:support-annotations:25.3.1
Install Repository and sync project,
Open File,
Show In Project Structure dialog
我是不是漏掉了什么?
任何帮助将不胜感激?
(android 工作室版本: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'
}
转到 SDK Manager
,更新您的 Google 存储库
我不知道为什么,但是我删除了 android studio 并重新安装了它,它成功了。
我是解析服务器的新手。我刚刚关注这里“http://docs.parseplatform.org/android/guide/”
我在 build.gradle
dependencies {
compile 'com.parse:parse-android:1.15.7'
}
我初始化了 MainActivity
Parse.initialize(this);
它给我一个错误:
Failed to resolve: com.android.support:support-annotations:25.3.1
Install Repository and sync project, Open File, Show In Project Structure dialog
我是不是漏掉了什么?
任何帮助将不胜感激? (android 工作室版本: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'
}
转到 SDK Manager
,更新您的 Google 存储库
我不知道为什么,但是我删除了 android studio 并重新安装了它,它成功了。