java - Mapbox: Cant add LocationLayer plugin in gradle -


when try include locationlayer plugin in gradle file error. traffic plugin , building plugin work fine.

the error:

failed resolve: android.arch.lifecycle:extension:1.0.0-alpha3  failed resolve: android.arch.lifecycle:runtime:1.0.0-alpha3 

build.gradle:

repositories {  mavencentral()  }  dependencies {      //mapbox     compile('com.mapbox.mapboxsdk:mapbox-android-sdk:5.1.0@aar') {         transitive = true     }      //navigation     compile 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.3.1'     //location layer     compile 'com.mapbox.mapboxsdk:mapbox-android-plugin-locationlayer:0.1.0'     //google play location service     compile 'com.google.android.gms:play-services-location:11.0.2'     //geolocation     compile 'com.mapbox.mapboxsdk:mapbox-android-ui:2.1.3'      compile filetree(include: ['*.jar'], dir: 'libs')     androidtestcompile('com.android.support.test.espresso:espressocore:2.2.2', {         exclude group: 'com.android.support', module: 'support-annotations'     })     compile 'com.android.support:appcompat-v7:25.3.1'     compile 'com.android.support.constraint:constraint-layout:1.0.2'     testcompile 'junit:junit:4.12' } 

per these instructions, try adding maven { url 'https://maven.google.com' } repositories , refresh gradle? should this:

allprojects {     repositories {         jcenter()         mavencentral()         maven { url 'https://maven.google.com' }     } } 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -