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

Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath #1364

Closed
yangbinlovegis opened this issue Dec 4, 2018 · 7 comments

Comments

@yangbinlovegis
Copy link

Current behavior

npm i reac-native-video
react-native link react-native-video
react-native run-android

when I use do this ,it is cause an error

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.

Could not determine artifacts for com.google.android.exoplayer:exoplayer-ui:2.9.1
Could not get resource 'https://jcenter.bintray.com/com/google/android/exoplayer/exoplayer-ui/2.9.1/exoplayer-ui-2.9.1.aar'.
> Could not HEAD 'https://jcenter.bintray.com/com/google/android/exoplayer/exoplayer-ui/2.9.1/exoplayer-ui-2.9.1.aar'.
> Connect to d29vzk4ow07wi7.cloudfront.net:443 [d29vzk4ow07wi7.cloudfront.net/52.84.245.63, d29vzk4ow07wi7.cloudfront.net/52.84.245.146, d29vzk4ow07wi7.cloudfront.net/52.84.245.74, d29vzk4ow07wi7.cloudfront.net/52.84.245.66] failed: Read timed out

2018-12-04 5 03 13

Reproduction steps

A 1, 2, 3, etc. list of what's needed to see the issue

happen.

Expected behavior

Describe what you wanted to happen

Platform

Which player are you experiencing the problem on

  • Android

Video sample

If possible, include a link to the video that has the problem that can be streamed or downloaded from.

@darkfiredarkhalo
Copy link

添加maven仓库即可解决.原因是aliyun和谷歌的仓库中还没有最新版的exoplayer.具体操作如下:
android目录下的build.gradle中添加
maven{
url "https://jcenter.bintray.com"
}

@StuartMorris0
Copy link

I have the same issue, was you able to resolve?

Failed to resolve: com.google.android.exoplayer:exoplayer-core:2.9.1
Failed to resolve: com.google.android.exoplayer:exoplayer-dash:2.9.1

@StuartMorris0
Copy link

It appears the repo is currently missing:

google/ExoPlayer#5225

This issue has a temp solution using a different maven url.
maven {
url 'https://google.bintray.com/exoplayer/'
}

@yangbinlovegis
Copy link
Author

I have the same issue, was you able to resolve?

Failed to resolve: com.google.android.exoplayer:exoplayer-core:2.9.1
Failed to resolve: com.google.android.exoplayer:exoplayer-dash:2.9.1

turn off the proxy,and 'react-native run-android' maybe 5 or 10 times, I success

@StuartMorris0
Copy link

see the issue link and answer above

@yangbinlovegis
Copy link
Author

see the issue link and answer above

I have solved this problem , when my net speed is good I download the pack, I will close this issues

@eaodesigns
Copy link

see the issue link and answer above

I have solved this problem , when my net speed is good I download the pack, I will close this issues

Please where in your project do you store the pack after you downloaded

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

4 participants