cannot evaluate module 'react-native-maps' : Configuration with name 'default' not found

前端 未结 3 1778
[愿得一人]
[愿得一人] 2020-12-31 01:28

A problem occured while building application with \'react-native-maps\'

here is my setting.gradle file

include \':react-native-maps\'
project(\':reac         


        
3条回答
  •  梦谈多话
    2020-12-31 02:28

    I was following instructions from:

    https://github.com/airbnb/react-native-maps/blob/master/docs/installation.md

    I noted that android/settings.gradle should point to react-native-maps/lib/android as below:

    include ':react-native-maps'
    project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')
    

提交回复
热议问题