Cannot sync the build graddle

5 posts / 0 new
Last post
developer.entrega
Cannot sync the build graddle

Just like title says, I cannot build the graddle

Error says:

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.mapquest:mapping-android-sdk:2.0.10.
Open File
Show Details

Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.mapquest:mapping-android-sdk:2.0.10.
Open File
Show Details

Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.mapquest:mapping-android-sdk:2.0.10.
Open File
Show Details

Code:

maven { url 'https://artifactory.cloud.mapquest.com/artifactory/et-android-binaries' }

implementation('com.mapquest:mapping-android-sdk:2.0.10')

 

I think it's because the page is not working, I enter the page and it shows nothing, I have already old version and when I opened after some time and I couldn't sync so I thought it's because the version has changed so I changed and same results.

 

I hope someone can help.

Thanks.


MQBrianCoakley
There was an Artifactory
There was an Artifactory issue over the weekend that has been resolved. It should be working now.

Galou
I can't sync my gradle either

I can't sync my gradle either I keep having this message :

ERROR: Failed to resolve: com.mapquest:mapping-android-sdk:2.0.10

 

implementation('com.mapquest:mapping-android-sdk:2.0.10')

maven { url 'https://artifactory.cloud.mapquest.com/artifactory/et-android-binaries' }


MQBrianCoakley
Are you still getting this
Are you still getting this error? Everything looks like it's in place and should be good to go.

MQNickZustak
Hello All,

Hello All,

I've just made a new project and adjusted the build.gradle files per the documentation here: https://developer.mapquest.com/documentation/maps-sdk/android/v2.0.10/

One thing that may be a little confusing is where to put the 'implementation('com.mapquest:mapping-android-sdk:2.0.10')   // for Mapping SDK MapView' bit.

This has to go within the dependences {} block of the app's build.gradle file. 

Here's my app's build.gradle file for reference:

 

apply plugin: 'com.android.application'

android {
compileSdkVersion 29
buildToolsVersion "29.0.1"
defaultConfig {
applicationId "com.example.YOUR APP ID GOES HERE ///// //// /// // /"
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation('com.mapquest:mapping-android-sdk:2.0.10') // for Mapping SDK MapView
}

 

Your environment may be slightly different.