react-native-material-kit编译时报错

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

最近项目需要用到android的一些原生组件,就用到了react-native-material-kit,可是确总是无法通过编译,困扰了我很久。不死心。。。。。。。。。。。

不过今天我在百度的时候,无意间发现了解决办法

链接地址:http://stackoverflow.com/questions/28774667/provided-dependencies-can-only-be-jars

问题如下:

react-native-material-kit编译时报错_第1张图片进入路径:项目  --> node_modules --> react-native-material-kit --> android --> build.gradle

修改

dependencies {
    provided 'com.facebook.react:react-native:0.+'
}

dependencies {
    compile 'com.facebook.react:react-native:0.+'
}

 

转载于:https://my.oschina.net/u/1460994/blog/725895

你可能感兴趣的:(react-native-material-kit编译时报错)