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

Failed to resolve: com.android.support:appcompat-v7:26.1.0 #256

Closed
Shariaty opened this issue Dec 21, 2017 · 9 comments
Closed

Failed to resolve: com.android.support:appcompat-v7:26.1.0 #256

Shariaty opened this issue Dec 21, 2017 · 9 comments

Comments

@Shariaty
Copy link

After installing lottie-react-native based on the docs I get this error
Error:Failed to resolve: com.android.support:appcompat-v7:26.1.0

and i add 'https://maven.google.com'

allprojects {
    repositories {
        maven {
            url 'https://maven.google.com'
        }
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
    }
}

to my project build.gradle

But there is no luck.. still i get
Error:Failed to resolve: com.android.support:appcompat-v7:26.1.0

@Shariaty Shariaty changed the title Pars Pom Failed to resolve: com.android.support:appcompat-v7:26.1.0 Dec 21, 2017
@shaksi
Copy link

shaksi commented Jan 1, 2018

there should be compile "com.android.support:appcompat-v7:" in your android/app/build.gradle.

change its number to 26.0.1 so that the compile line is compile "com.android.support:appcompat-v7:26.0.1"

make sure to set the compile and build tools version to the same (at the top of the same file):

compileSdkVersion 26
buildToolsVersion "26.0.1"

@alexsmartens
Copy link

+1 I'm having the same problem

@Shariaty
Copy link
Author

+1 i still cannot get this worked !!

@axlalvaro
Copy link

@Shariaty @alexsmartens I found the solution here: #203

@alexsmartens
Copy link

alexsmartens commented Feb 22, 2018

@axlalvaro thank you.
It did not helped me though. I got the following error afterwards:

:lottie-react-native:generateReleaseBuildConfig FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':lottie-react-native:generateReleaseBuildConfig'.
> java.io.IOException: Could not delete path 'D:\myPATH\myApp\node_modules\lottie-react-native\src\android\build\generated\source\buildConfig\release\com\airbnb'.

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

Have you seen anything like that?

@axlalvaro
Copy link

axlalvaro commented Feb 22, 2018

@alexsmartens No, sorry. The only changes I made were:

In my app build.gradle:

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.1"

In my project build.gradle:

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            url 'https://maven.google.com'
        }
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
    }
}

@p1xedge
Copy link

p1xedge commented Sep 5, 2018

i have same problem i tried this

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

@manojMadarasingha
Copy link

Try adding a more stable version such as V 26.0.0

@AnisDerbel
Copy link

+1

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

No branches or pull requests

8 participants