A problem occurred configuring project ‘:react-native-vector-icons’.
安装了 react-native-vector-icons 包,并按照文档在android和ios分别进行了配置
结果run-ios 是没什么问题
但是run-android时出现了以下报错,在issue里、stackoverflow里、各种博客寻找解决办法,折腾了一个多小时,结果都没用
第二天再试一次就ok了
哦、、==。 难道这个报错是因为网络太差了。。
以后遇到不知名报错,可以查看一下网络,看网速是否给力
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':react-native-vector-icons'.
> Could not resolve all artifacts for configuration ':react-native-vector-icons:classpath'.
> Could not download kotlin-reflect.jar (org.jetbrains.kotlin:kotlin-reflect:1.3.20)
> Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.3.20/kotlin-reflect-1.3.20.jar'.
> Read timed out
> Could not download kotlin-stdlib.jar (org.jetbrains.kotlin:kotlin-stdlib:1.3.20)
> Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.3.20/kotlin-stdlib-1.3.20.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/601f910da968fb3da8ead7b64ed6bf5c9710d83cea37e4a631847e7d688e3361?response-content-disposition=attachment%3Bfilename%3D%22kotlin-stdlib-1.3.20.jar%22&Policy=eyJTdGF0ZW1lbnQiOiBbeyJSZXNvdXJjZSI6Imh0dHAqOi8vZDI5dnprNG93MDd3aTcuY2xvdWRmcm9udC5uZXQvNjAxZjkxMGRhOTY4ZmIzZGE4ZWFkN2I2NGVkNmJmNWM5NzEwZDgzY2VhMzdlNGE2MzE4NDdlN2Q2ODhlMzM2MT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPWF0dGFjaG1lbnQlM0JmaWxlbmFtZSUzRCUyMmtvdGxpbi1zdGRsaWItMS4zLjIwLmphciUyMiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTU4NTA1MDg3Mn0sIklwQWRkcmVzcyI6eyJBV1M6U291cmNlSXAiOiIwLjAuMC4wLzAifX19XX0_&Signature=qD3hv27gaW9CORZooTpqIQgblXe0kgu88sRYmXCkln-lQqR7k0QqZ1VHWlVj72dluG9527ZZDs4693l4TOM-jW4kb5t88fb5dUtAAtIqm55yowXB~15RejGTbHHdHzXd-uzD28NUhZvuAmLmZjK6EJHbOjWm7OiUCRf7ZXzJgEVTYymomOLFGw88FARehCcTV8DgatXEirorIp4eNn8BvAwi69gme1VFdns64AIKZDaQMwu5psW4S6IWmwwJsxfwVvPGyD9BYvbagJtjc1DxjkanmJ5wIES9SLZG5TcB4kGfvskIZQUfj4hq1awPWbA0zR2m3~OAJAT0ZWOskQuD4w__&Key-Pair-Id=APKAIFKFWOMXM2UMTSFA'.
> Received close_notify during handshake
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2m 58s
at checkExecSyncError (child_process.js:621:11)
at execFileSync (child_process.js:639:15)
at runOnAllDevices (/Users/momo/Documents/PR/react-native-apps/demo/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:39)
at buildAndRun (/Users/momo/Documents/PR/react-native-apps/demo/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:179:41)
at /Users/momo/Documents/PR/react-native-apps/demo/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:133:12
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Command.handleAction (/Users/momo/Documents/PR/react-native-apps/demo/node_modules/react-native/node_modules/@react-native-community/cli/build/index.js:182:9)