Error:Could not expand ZIP *.aar

大家有遇到这个问题吗:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:prepareSmartPropertyReactNativeSplashScreenUnspecifiedLibrary'.
> Could not expand ZIP 'F:\ProjectCode\smartproperty\SmartProperty\node_modules\react-native-splash-screen\android\build\outputs\aar\react-native-splash-screen-release.aar'.

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

网上的解决方法真不少,但都不管用,下面给出我的方法:

cd android 
gradlew clean 
cd ..
react-native run-android

或者

cd android && gradlew clean && cd .. && react-native run-android

结尾

还想吐槽一下RN,真TM的难用,要不是看在跨平台的好处,真不想用,但是爬坑浪费的时间足够我开发2个APP了。

猜你喜欢

转载自blog.csdn.net/mffandxx/article/details/80545347
zip
今日推荐