> A problem occurred configuring project ':react-native-fbsdk'.
> Could not resolve all dependencies for configuration ':react-native-fbsdk:_debugPublishCopy'.
> Could not find com.android.support:appcompat-v7:27.0.1.
Searched in the following locations:
file:/<location_to_sdk>/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.1/appcompat-v7-27.0.1.pom
file:/<location_to_sdk>/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.1/appcompat-v7-27.0.1.jar
file:/<location_to_app>/android/sdk-manager/com/android/support/appcompat-v7/27.0.1/appcompat-v7-27.0.1.jar
Required by:
newPtMobile:react-native-fbsdk:unspecified
Run Code Online (Sandbox Code Playgroud)
这个问题今天早上在运行react-native run-android而没有对代码进行任何更改或添加新软件包时开始发生,它现在工作正常!
"react-native":"0.50.3","react-native-fbsdk":"0.6.3"
我可以看到我android support libraries在sdk/extras/android/m2repository/com/android/support子文件夹中丢失,所有子文件夹都将26.0.0-alpha1文件夹作为最后一个文件夹.我已经尝试删除支持存储库并通过android studio再次安装并android_m2repository手动下载最新版本,但文件夹仍然缺失.
我无法理解的原因google's maven repository(https://dl.google.com/dl/android/maven2/index.html)指出,例如 m2repository/com/android/support/appcompat-v7我应该有一个名为的文件夹27.0.2(以及一些以前的版本也会丢失) )但即使在最新的android_m2存储库中,它们也提供它也不见了!
https://dl.google.com/android/repository/android_m2repository_r48.zip