Ho questo registro da Studio Android Gradle:Impossibile trovare com.google.android.gms: play-servizi: 7.3.0
Error:A problem occurred configuring project ':ParseStarterProject'.
> Could not resolve all dependencies for configuration ':ParseStarterProject:_debugCompile'.
> Could not find com.google.android.gms:play-services:7.5.0.
Searched in the following locations:
https://repo1.maven.org/maven2/com/google/android/gms/play-services/7.5.0/play-services-7.5.0.pom
https://repo1.maven.org/maven2/com/google/android/gms/play-services/7.5.0/play-services-7.5.0.jar
Required by:
Parse:ParseStarterProject:unspecified
Come in tutto il mondo, non può guardare a livello locale dove si trova (altri progetti vedono chiaramente e normalmente compilano)?
apply plugin: 'com.android.application'
apply plugin: 'com.parse'
buildscript {
repositories {
mavenCentral()
jcenter()
maven { url 'https://maven.parse.com/repo' }
}
dependencies {
classpath 'com.parse.tools:gradle:1.+'
}
}
dependencies {
compile 'com.google.android.gms:play-services:7.5.0'
compile 'com.parse.bolts:bolts-android:1.2.0'
compile fileTree(dir: 'libs', include: 'Parse-*.jar')
compile fileTree(dir: 'libs', include: 'ParseCrashReporting-*.jar')
}
android {
compileSdkVersion 22
buildToolsVersion "20"
defaultConfig {
minSdkVersion 9
targetSdkVersion 22
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
}
}
/* Uncomment if you enable ProGuard and you want to automatically upload symbols on build.
parse {
applicationId YOUR_APPLICATION_ID
masterKey YOUR_MASTER_KEY
// Make symbol upload automatic. Otherwise, use e.g. ../gradlew parseUploadSymbolsDebug;
uploadSymbols true
}
*/
Intendi? Ce ne sono due, quindi metto quello per caso.
edit: build.gradle (modulo)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.+'
}
}
allprojects {
repositories {
mavenCentral()
}
}
ext {
compileSdkVersion = 22
buildToolsVersion = "22"
minSdkVersion = 9
targetSdkVersion = 22
}
Puoi pubblicare il tuo file build.gradle? –
@DanielNugent Daniel, hey amico! Grazie per essere entrato :) Ho appena aggiornato la mia domanda! –
Ehi! Nessun problema! È strano, l'errore è su '7.3.0' e tu hai' compile 'com.google.android.gms: play-services: 7.5.0''. Potrebbe essere un problema con una dipendenza della libreria di bulloni? –