运行那个react-native-splash-screen解决白屏问题,为什么会有这样的错误

来源:12-4 项目打包发布iOS应用

慕虎4125367

2019-01-28

A problem occurred configuring project ‘:app’.

Could not resolve all dependencies for configuration ‘:app:_debugApk’.
A problem occurred configuring project ‘:react-native-splash-screen’.
Could not resolve all dependencies for configuration ‘:react-native-spla sh-screen:_debugPublishCopy’.
Could not find com.android.support:appcompat-v7:26.1.0.
Searched in the following locations:
file:/D:/Program Files/Sdk/extras/android/m2repository/com/androi d/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom
file:/D:/Program Files/Sdk/extras/android/m2repository/com/androi d/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.jar
file:/D:/RN/seconds/android/sdk-manager/com/android/support/appco mpat-v7/26.1.0/appcompat-v7-26.1.0.jar
Required by:
seconds:react-native-splash-screen:unspecified
Could not find com.android.support:appcompat-v7:26.1.0.
Searched in the following locations:
file:/D:/Program Files/Sdk/extras/android/m2repository/com/androi d/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom
file:/D:/Program Files/Sdk/extras/android/m2repository/com/androi d/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.jar
file:/D:/RN/seconds/android/sdk-manager/com/android/support/appco mpat-v7/26.1.0/appcompat-v7-26.1.0.jar
Required by:
seconds:react-native-splash-screen:unspecified > com.facebook.rea ct:react-native:0.51.0
老师,运行你那个react-native-splash-screen解决白屏问题,为什么会有这样的错误

写回答

1回答

CrazyCodeBoy

2019-01-30

需要的依赖包没有下载完成,用AndroidStuio打开Android项目,clean之后重新运行试一下哈。

0
0

React Native技术精讲与高质量上线App开发

一个真实的上线项目,一次完整的开发过程,全面掌握React Native技术

1577 学习 · 727 问题

查看课程