0

Updated gradle and I guess that's what messed things up. enter image description here

My gradle version is

build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        mavenCentral()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
    }
}

allprojects {
    repositories {
        mavenCentral()
        google()
    }
}

ext {
    compileSdkVersion = 22
    buildToolsVersion = "23.0.1"

    minSdkVersion = 14
    targetSdkVersion = 23
}

build.gradle inside of project ParseStarterProject enter image description here

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '26.0.2'

    defaultConfig {
        applicationId "com.parse.starter"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    dexOptions {
        javaMaxHeapSize "4g"
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation 'com.google.android.gms:play-services-maps:11.8.0'
    api 'com.android.support:appcompat-v7:23.4.0'
    api 'com.parse.bolts:bolts-tasks:1.3.0'
    api 'com.parse:parse-android:1.13.0'
    api 'com.google.android.gms:play-services:9.4.0'
    compile 'com.android.support:multidex:1.0.0'
}

Edit: External Lib, please take a look, is this what's causing the issue? enter image description here

Dhaval Jardosh
  • 7,151
  • 5
  • 27
  • 69

1 Answers1

1

Updating your google play services may help you. Latest is 11.8.0

com.google.android.gms:play-services:11.4.0

clean and rebuild your project

vikas kumar
  • 10,447
  • 2
  • 46
  • 52
  • still facing the same problem. – Dhaval Jardosh Feb 12 '18 at 18:57
  • I don't know how but things started working when I changed, `com.google.android.gms:play-services-maps:11.8.0` to `com.google.android.gms:play-services-maps:9.4.0`. – Dhaval Jardosh Feb 12 '18 at 19:22
  • 1
    As Gabrielle said, you are trying to use play services of ver 9.4.0 together with maps (which is already part of play services) of ver 11.8.0. therefore you can not have the same library in 2 different versions. Please don't include play services but rather only specific libraries that you need. – Robert K. Feb 13 '18 at 08:05