Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How install appcompat-v7-28.0.0 to m2repository? #11

Open
KaYLKann opened this issue Dec 28, 2018 · 0 comments
Open

How install appcompat-v7-28.0.0 to m2repository? #11

KaYLKann opened this issue Dec 28, 2018 · 0 comments

Comments

@KaYLKann
Copy link

Hi! I try use chart library "com.github.AnyChart:AnyChart-Android:1.0.8"
and get error.
I understand that there is not enough library "appcompat-v7-28" in m2repository, but I do not know how to install them.
I hope for your help. Thanks!

Error:

Gradle log:

FAILURE: Build failed with an exception.

  • Where:
    Build file 'C:\Users\Vladimir\AppData\Local\Temp\Xamarin.GradleBindings\bcd4d5\build.gradle' line: 10

  • What went wrong:
    A problem occurred evaluating root project 'bcd4d5'.

Could not resolve all files for configuration ':detachedConfiguration2'.
Could not find com.android.support:appcompat-v7:28.0.0.
Searched in the following locations:
file:/C:/Program Files (x86)/Android/android-sdk/extras/android/m2repository/com/android/support/appcompat-v7/28.0.0/appcompat-v7-28.0.0.pom
file:/C:/Program Files (x86)/Android/android-sdk/extras/android/m2repository/com/android/support/appcompat-v7/28.0.0/appcompat-v7-28.0.0.jar
https://jcenter.bintray.com/com/android/support/appcompat-v7/28.0.0/appcompat-v7-28.0.0.pom
https://jcenter.bintray.com/com/android/support/appcompat-v7/28.0.0/appcompat-v7-28.0.0.jar
https://jitpack.io/com/android/support/appcompat-v7/28.0.0/appcompat-v7-28.0.0.pom
https://jitpack.io/com/android/support/appcompat-v7/28.0.0/appcompat-v7-28.0.0.jar
Required by:
project : > com.github.AnyChart:AnyChart-Android:1.0.8

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 4s

Original script:

apply plugin: 'java'

def resolveDependencyString(String dependencyString) {
def dependency = dependencies.create(dependencyString)
configurations.detachedConfiguration(dependency).setTransitive(false).resolve()
}

def resolveDependencyStringTransitive(String dependencyString) {
def dependency = dependencies.create(dependencyString)
configurations.detachedConfiguration(dependency).setTransitive(true).resolve()
}

repositories {
maven { url "C:/Program Files (x86)/Android/android-sdk/extras/android/m2repository/" } // will be replaced by the add-in
jcenter()
maven { url "https://jitpack.io" }
// add custom repositores here
}

task getDeps(type: Copy) {
def resultFileAll = new File("C:/Users/Vladimir/AppData/Local/Temp/Xamarin.GradleBindings/bcd4d5/result_main.txt")
def resultFileMain = new File("C:/Users/Vladimir/AppData/Local/Temp/Xamarin.GradleBindings/bcd4d5/result_all.txt")
resolveDependencyString('com.github.AnyChart:AnyChart-Android:1.0.8').sort().each { resultFileMain.append('\n' + it.toString()) }
resolveDependencyStringTransitive('com.github.AnyChart:AnyChart-Android:1.0.8').sort().each { resultFileAll.append('\n' + it.toString()) }
}

Stack-Trace:

в GradleBindings.Gradle.ExtractDependencies(String dependency, String androidSdkHome, String& workingDirectory, String customRepositories, Boolean detailedLog)
в GradleBindings.BindingProjectGenerator.<>c__DisplayClass7_1.b__1()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant