react-native-device-info: Android can't run

Summary

Version 0.21.5
Affected OS Android
OS Version 7.0

Current behavior

`* What went wrong: A problem occurred configuring project ‘:react-native-device-info’.

Could not resolve all dependencies for configuration ‘:react-native-device-inf o:_debugPublishCopy’. Could not find com.android.support:support-v4:26.1.0. Searched in the following locations: file:/D:/Android/sdk/extras/android/m2repository/com/android/support/su pport-v4/26.1.0/support-v4-26.1.0.pom file:/D:/Android/sdk/extras/android/m2repository/com/android/support/su pport-v4/26.1.0/support-v4-26.1.0.aar file:/D:/project/read/android/sdk-manager/com/android/support/support-v 4/26.1.0/support-v4-26.1.0.aar Required by: yuecai:react-native-device-info:unspecified > com.facebook.react:react- native:0.46.4 > com.android.support:appcompat-v7:23.0.1 Could not find com.android.support:support-v4:26.1.0. Searched in the following locations: file:/D:/Android/sdk/extras/android/m2repository/com/android/support/su pport-v4/26.1.0/support-v4-26.1.0.pom file:/D:/Android/sdk/extras/android/m2repository/com/android/support/su pport-v4/26.1.0/support-v4-26.1.0.aar file:/D:/project/read/android/sdk-manager/com/android/support/support-v 4/26.1.0/support-v4-26.1.0.aar Required by: yuecai:react-native-device-info:unspecified > com.google.android.gms:pl ay-services-gcm:15.0.1 > com.google.android.gms:play-services-basement:15.0.1

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

Expected behavior

help me! thanks.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 7
  • Comments: 19

Most upvoted comments

this is the problem for me image

and in fact if you go on this link returns 404 resource not found https://jcenter.bintray.com/android/arch/lifecycle/runtime/1.0.0/runtime-1.0.0.jar

this is why I thought that the problem is with jcenter


This is another proof:

https://stackoverflow.com/questions/50562212/gradle-build-tool-cannot-find-play-services-tasks-aar-why/50562478#50562478