搖籃錯誤:搖籃建有一些錯誤
Error:(63, 13) Failed to resolve: com.google.android.gms:play-services-gcm:11.0.2
Error:(66, 13) Failed to resolve: com.google.android.gms:play-services-maps:11.0.2
Error:(65, 13) Failed to resolve: com.google.android.gms:play-services-analytics:11.0.2
Error:(62, 13) Failed to resolve: com.google.android.gms:play-services-places:11.0.2
Error:(64, 13) Failed to resolve: com.google.android.gms:play-services-location:11.0.2
Error:(55, 13) Failed to resolve: com.android.support.constraint:constraint-layout:1.0.2
apply plugin: 'com.android.application'
android {
signingConfigs {
config {
keyPassword keyPassword
storeFile filestoreFile
storePassword storePassword
keyAlias keyAlias
}
}
compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
applicationId applicationId
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.0"
manifestPlaceholders = [onesignal_app_id: manifestPlaceholders , onesignal_google_project_number: "REMOTE"]
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config
}
}
packagingOptions {
exclude 'libs/jackson-core-asl-1.9.13.jar'
exclude 'libs/jackson-mapper-asl-1.9.13.jar'
exclude 'META-INF/ASL2.0'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}
useLibrary 'org.apache.http.legacy'
}
allprojects {
repositories {
maven { url "https://jitpack.io" }
mavenCentral()
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:support-annotations:25.3.1'
compile 'com.android.support:support-compat:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.google.android.gms:play-services-places:11.0.2'
compile 'com.google.android.gms:play-services-gcm:11.0.2'
compile 'com.google.android.gms:play-services-location:11.0.2'
compile 'com.google.android.gms:play-services-analytics:11.0.2'
compile 'com.google.android.gms:play-services-maps:11.0.2'
compile 'com.fasterxml.jackson.core:jackson-core:2.8.8'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.8.8'
compile 'com.fasterxml.jackson.core:jackson-databind:2.8.8'
compile 'com.loopj.android:android-async-http:1.4.8'
compile 'com.squareup.okhttp3:okhttp:3.8.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.daimajia.swipelayout:library:[email protected]'
compile 'com.github.hamsaadev:Persian-Date-Picker-Dialog:V1.0'
compile 'com.onesignal:OneSignal:[email protected]'
compile 'com.android.support:support-v4:25.3.1'
testCompile 'junit:junit:4.12'
}
我嘗試:
- gradle這個設置脫機工作未選中
- http代理
- 刪除HTTP代理
代理但問題提醒。
機器人工作室版本:2.3.3
gradle.build(模塊:APP):
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:3.1.0'
}
}
allprojects {
repositories {
jcenter()
}
}
版本連接到互聯網和同步gradle這個 –