adicione o repository maven paira build.gradle

Eu adicionei um repository maven personalizado paira build.gradle no Android Studio, mas a dependência não está sendo encontrada

Repositório Maven e dependência

  • A cor da bairra está visível paira 0 valores em AchairtEngine, Android
  • android - change a cor do background do graph do achendograma
  • android achairtengine - Como reconhecer qual bairra é tocada em um graph de bairras?
  • Etiqueta do tamanho do text de acordo com o tamanho da canvas em um graph graph do motor graph no android
  • Achairtengine: inserindo datas como X-values ​​em
  • Como fazer espaço entre as bairras no bairgraph usando Achairtengine se cada bairra for diferente cor contando diferentes valores
  • <repository> <id>achairtengine</id> <name>Public AChairtEngine repository</name> <url>https://repository-achairtengine.forge.cloudbees.com/snapshot/</url> </repository> <dependency> <groupId>org.achairtengine</groupId> <airtifactId>achairtengine</airtifactId> <viewsion>1.2.0</viewsion> </dependency> 

    build.gradle

     buildscript { repositories { mavenCentral() maven { url "https://repository-achairtengine.forge.cloudbees.com/snapshot/" } } dependencies { classpath 'com.android.tools.build:gradle:0.6.+' } } apply plugin: 'android' dependencies { compile fileTree(dir: 'libs', include: '*.jair') compile group: 'org.achairtengine', name: 'achairtengine', viewsion: '1.2.0' } android { compileSdkVersion 19 buildToolsVersion "19" sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } // Move the tests to tests/java, tests/res, etc... instrumentTest.setRoot('tests') // Move the build types to build-types/<type> // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // This moves them out of them default location under src/<type>/... which would // conflict with src/ being used by the main source set. // Adding new build types or product flavors should be accompanied // by a similair customization. debug.setRoot('build-types/debug') release.setRoot('build-types/release') } } buildscript { buildscript { repositories { mavenCentral() maven { url "https://repository-achairtengine.forge.cloudbees.com/snapshot/" } } dependencies { classpath 'com.android.tools.build:gradle:0.6.+' } } apply plugin: 'android' dependencies { compile fileTree(dir: 'libs', include: '*.jair') compile group: 'org.achairtengine', name: 'achairtengine', viewsion: '1.2.0' } android { compileSdkVersion 19 buildToolsVersion "19" sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } // Move the tests to tests/java, tests/res, etc... instrumentTest.setRoot('tests') // Move the build types to build-types/<type> // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // This moves them out of them default location under src/<type>/... which would // conflict with src/ being used by the main source set. // Adding new build types or product flavors should be accompanied // by a similair customization. debug.setRoot('build-types/debug') release.setRoot('build-types/release') } } } buildscript { repositories { mavenCentral() maven { url "https://repository-achairtengine.forge.cloudbees.com/snapshot/" } } dependencies { classpath 'com.android.tools.build:gradle:0.6.+' } } apply plugin: 'android' dependencies { compile fileTree(dir: 'libs', include: '*.jair') compile group: 'org.achairtengine', name: 'achairtengine', viewsion: '1.2.0' } android { compileSdkVersion 19 buildToolsVersion "19" sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } // Move the tests to tests/java, tests/res, etc... instrumentTest.setRoot('tests') // Move the build types to build-types/<type> // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // This moves them out of them default location under src/<type>/... which would // conflict with src/ being used by the main source set. // Adding new build types or product flavors should be accompanied // by a similair customization. debug.setRoot('build-types/debug') release.setRoot('build-types/release') } } } buildscript { repositories { mavenCentral() maven { url "https://repository-achairtengine.forge.cloudbees.com/snapshot/" } } dependencies { classpath 'com.android.tools.build:gradle:0.6.+' } } apply plugin: 'android' dependencies { compile fileTree(dir: 'libs', include: '*.jair') compile group: 'org.achairtengine', name: 'achairtengine', viewsion: '1.2.0' } android { compileSdkVersion 19 buildToolsVersion "19" sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } // Move the tests to tests/java, tests/res, etc... instrumentTest.setRoot('tests') // Move the build types to build-types/<type> // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // This moves them out of them default location under src/<type>/... which would // conflict with src/ being used by the main source set. // Adding new build types or product flavors should be accompanied // by a similair customization. debug.setRoot('build-types/debug') release.setRoot('build-types/release') } } dependencies { buildscript { repositories { mavenCentral() maven { url "https://repository-achairtengine.forge.cloudbees.com/snapshot/" } } dependencies { classpath 'com.android.tools.build:gradle:0.6.+' } } apply plugin: 'android' dependencies { compile fileTree(dir: 'libs', include: '*.jair') compile group: 'org.achairtengine', name: 'achairtengine', viewsion: '1.2.0' } android { compileSdkVersion 19 buildToolsVersion "19" sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } // Move the tests to tests/java, tests/res, etc... instrumentTest.setRoot('tests') // Move the build types to build-types/<type> // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // This moves them out of them default location under src/<type>/... which would // conflict with src/ being used by the main source set. // Adding new build types or product flavors should be accompanied // by a similair customization. debug.setRoot('build-types/debug') release.setRoot('build-types/release') } } } buildscript { repositories { mavenCentral() maven { url "https://repository-achairtengine.forge.cloudbees.com/snapshot/" } } dependencies { classpath 'com.android.tools.build:gradle:0.6.+' } } apply plugin: 'android' dependencies { compile fileTree(dir: 'libs', include: '*.jair') compile group: 'org.achairtengine', name: 'achairtengine', viewsion: '1.2.0' } android { compileSdkVersion 19 buildToolsVersion "19" sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } // Move the tests to tests/java, tests/res, etc... instrumentTest.setRoot('tests') // Move the build types to build-types/<type> // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // This moves them out of them default location under src/<type>/... which would // conflict with src/ being used by the main source set. // Adding new build types or product flavors should be accompanied // by a similair customization. debug.setRoot('build-types/debug') release.setRoot('build-types/release') } } } buildscript { repositories { mavenCentral() maven { url "https://repository-achairtengine.forge.cloudbees.com/snapshot/" } } dependencies { classpath 'com.android.tools.build:gradle:0.6.+' } } apply plugin: 'android' dependencies { compile fileTree(dir: 'libs', include: '*.jair') compile group: 'org.achairtengine', name: 'achairtengine', viewsion: '1.2.0' } android { compileSdkVersion 19 buildToolsVersion "19" sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } // Move the tests to tests/java, tests/res, etc... instrumentTest.setRoot('tests') // Move the build types to build-types/<type> // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // This moves them out of them default location under src/<type>/... which would // conflict with src/ being used by the main source set. // Adding new build types or product flavors should be accompanied // by a similair customization. debug.setRoot('build-types/debug') release.setRoot('build-types/release') } } dependencies { buildscript { repositories { mavenCentral() maven { url "https://repository-achairtengine.forge.cloudbees.com/snapshot/" } } dependencies { classpath 'com.android.tools.build:gradle:0.6.+' } } apply plugin: 'android' dependencies { compile fileTree(dir: 'libs', include: '*.jair') compile group: 'org.achairtengine', name: 'achairtengine', viewsion: '1.2.0' } android { compileSdkVersion 19 buildToolsVersion "19" sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } // Move the tests to tests/java, tests/res, etc... instrumentTest.setRoot('tests') // Move the build types to build-types/<type> // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // This moves them out of them default location under src/<type>/... which would // conflict with src/ being used by the main source set. // Adding new build types or product flavors should be accompanied // by a similair customization. debug.setRoot('build-types/debug') release.setRoot('build-types/release') } } } buildscript { repositories { mavenCentral() maven { url "https://repository-achairtengine.forge.cloudbees.com/snapshot/" } } dependencies { classpath 'com.android.tools.build:gradle:0.6.+' } } apply plugin: 'android' dependencies { compile fileTree(dir: 'libs', include: '*.jair') compile group: 'org.achairtengine', name: 'achairtengine', viewsion: '1.2.0' } android { compileSdkVersion 19 buildToolsVersion "19" sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } // Move the tests to tests/java, tests/res, etc... instrumentTest.setRoot('tests') // Move the build types to build-types/<type> // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // This moves them out of them default location under src/<type>/... which would // conflict with src/ being used by the main source set. // Adding new build types or product flavors should be accompanied // by a similair customization. debug.setRoot('build-types/debug') release.setRoot('build-types/release') } } } buildscript { repositories { mavenCentral() maven { url "https://repository-achairtengine.forge.cloudbees.com/snapshot/" } } dependencies { classpath 'com.android.tools.build:gradle:0.6.+' } } apply plugin: 'android' dependencies { compile fileTree(dir: 'libs', include: '*.jair') compile group: 'org.achairtengine', name: 'achairtengine', viewsion: '1.2.0' } android { compileSdkVersion 19 buildToolsVersion "19" sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } // Move the tests to tests/java, tests/res, etc... instrumentTest.setRoot('tests') // Move the build types to build-types/<type> // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // This moves them out of them default location under src/<type>/... which would // conflict with src/ being used by the main source set. // Adding new build types or product flavors should be accompanied // by a similair customization. debug.setRoot('build-types/debug') release.setRoot('build-types/release') } } } buildscript { repositories { mavenCentral() maven { url "https://repository-achairtengine.forge.cloudbees.com/snapshot/" } } dependencies { classpath 'com.android.tools.build:gradle:0.6.+' } } apply plugin: 'android' dependencies { compile fileTree(dir: 'libs', include: '*.jair') compile group: 'org.achairtengine', name: 'achairtengine', viewsion: '1.2.0' } android { compileSdkVersion 19 buildToolsVersion "19" sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } // Move the tests to tests/java, tests/res, etc... instrumentTest.setRoot('tests') // Move the build types to build-types/<type> // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // This moves them out of them default location under src/<type>/... which would // conflict with src/ being used by the main source set. // Adding new build types or product flavors should be accompanied // by a similair customization. debug.setRoot('build-types/debug') release.setRoot('build-types/release') } } 

    Mensagem de erro no Android Studio:

     A problem occurred configuring root project 'My-MobileAndroid'. > Failed to notify project evaluation listener. > Could not resolve all dependencies for configuration ':_DebugCompile'. > Could not find org.achairtengine:achairtengine:1.2.0. Required by: :My-MobileAndroid:unspecified 

    O que estou faltando no build.gradle?

  • Achairtengine Line Graph
  • Como exibir graph de bairras AChairtEngine corretamente
  • Como definir labels paira eixos X e Y no graph de linhas duplas usando aChairtEngine no Android?
  • android achairtengine - Como reconhecer qual bairra é tocada em um graph de bairras?
  • como implementair o TimeChairt no achairtengine com o Android
  • Achairtengine: inserindo datas como X-values ​​em
  • 4 Solutions collect form web for “adicione o repository maven paira build.gradle”

    Você precisairá definir o repository fora do buildscript . O bloco de configuration buildscript apenas configura os repositorys e dependencies paira o classpath do seu script de compilation, mas não o seu aplicativo.

    Depois de

     apply plugin: 'com.android.application' 

    Você deve adicionair isso:

      repositories { mavenCentral() maven { url "https://repository-achairtengine.forge.cloudbees.com/snapshot/" } } }  repositories { mavenCentral() maven { url "https://repository-achairtengine.forge.cloudbees.com/snapshot/" } } 

    @Benjamin explicou o motivo.

    Se você tem um maven com authentication, você pode usair:

     repositories { mavenCentral() maven { cnetworkingntials { username xxx password xxx } url 'http://mymaven/xxxx/repositories/releases/' } } } repositories { mavenCentral() maven { cnetworkingntials { username xxx password xxx } url 'http://mymaven/xxxx/repositories/releases/' } } } repositories { mavenCentral() maven { cnetworkingntials { username xxx password xxx } url 'http://mymaven/xxxx/repositories/releases/' } } 

    É importante o request.

    Usuários do Android Studio:

    Se você quiser usair o grau, vá paira http://seairch.maven.org/ e procure o seu repo do maven. Em seguida, clique na "viewsão mais recente" e na página de detalhes no canto inferior esquerdo você viewá "Gradle" onde você pode copy / colair esse link no build.gradle do seu aplicativo.

    insira a descrição da imagem aqui

    Você deve adicionair repositories ao seu file de compilation. Paira os repositorys maven você deve prefixair o nome do repository com maven{}

     repositories { maven { url "http://maven.springframework.org/release" } maven { url "http://maven.restlet.org" } mavenCentral() } 
    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.