只需要在android/app/build.gradle中的dependencies字段中添加:
然后重新跑一下react-native run-android命令就可以了!
如下图所示:
转载地址:http://www.cnblogs.com/zhiyingzhou/p/6076204.html