在react native 使用react-native-sqlite-storage 组件时(4.1.0版本),遇到 了 报react-native-sqlite-storage 组件,报Unable to find a matching configuration of project

这个错误,后来发现,

 

4.1.0之前版本的目录结构是:react-native-sqlite-storage 组件,报Unable to find a matching configuration of project 

这些东西在src中。

 

而这个4.1.0版本的组件,结构是:

react-native-sqlite-storage 组件,报Unable to find a matching configuration of project

他把这些Android的东西,放到了platforms中。

 

但是在link时,目录结构还是src:

react-native-sqlite-storage 组件,报Unable to find a matching configuration of project

 

所以报资源找不到。解决方法就是,改成platforms,

 

react-native-sqlite-storage 组件,报Unable to find a matching configuration of project

 

就完美啦。

遇到类似的

react-native-sqlite-storage 组件,报Unable to find a matching configuration of project

错误,也可以先考虑一下这个解决方案。

相关文章: