在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

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

相关文章:

  • 2021-10-17
  • 2021-04-22
  • 2021-08-09
  • 2022-01-13
  • 2022-12-23
  • 2022-02-26
  • 2022-12-23
  • 2021-09-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-13
  • 2021-10-24
  • 2022-12-23
  • 2021-12-22
相关资源
相似解决方案