React Native : Task :react-native-maps:compileDebugRenderscript FAILED

后端 未结 5 568
伪装坚强ぢ
伪装坚强ぢ 2021-01-13 17:32

I am trying to implement React Native MapView for Android. I did follow github installation instruction but i am facing compilation error when i try to run usin

5条回答
  •  走了就别回头了
    2021-01-13 18:31

    After two day's of struggling i find my solution by my self.The real issue is my project using compileSdkVersion = 28 and react-native-maps node_module using different version of compileSdkVersion.

    To solve this issue need to update react-native-maps node_module compileSdkVersion version.

    project_name>node_modules>react-native-maps>lib>android>build.gradle

     ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 20
        compileSdkVersion = 28
        targetSdkVersion = 28
        supportLibVersion = "28.0.0"
    }
    

    Module compile SDK version and support library version should be same as project compile SDK version and support library version.

提交回复
热议问题