2021-01-12 11:58

compilation error


I don't know if it's a problem for everyone but there is a compilation error on Android with the updated Google Play services.

Prevent Error: more than one library with package name 'com.google.android.gms.license' with Google Play services 12.0.0


  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答


  • weixin_39710251 weixin_39710251 4月前

    I can confirm this is a problem for us as well.

    点赞 评论 复制链接分享
  • weixin_39528366 weixin_39528366 4月前

    Hi and thank you for the proposal.

    365 and #366 were opened recently, due to the new version of Google Play services.

    I don't know if setting a default value to "11.+" really solves this problem, as some people may want to use "12" for a project, and this is just a default value that can be overridden by configuration.

    Would you be up for adding more details about this problem in the README file along with some of the solutions provided in the two issues I linked?

    点赞 评论 复制链接分享
  • weixin_39710251 weixin_39710251 4月前

    We found a solution: Set the following in your android/build.gradle file:

    ext { googlePlayServicesVersion = "11.4.2" } ...or whatever version you want to use in your app Make sure to use the latest version of react-native-device-info.

    Therefor this PR is not needed.

    点赞 评论 复制链接分享
  • weixin_39900608 weixin_39900608 4月前

    Yes this is the best solution, thanks for the help!

    点赞 评论 复制链接分享