Place Picker Automatically close after launch

前端 未结 6 1670
半阙折子戏
半阙折子戏 2020-12-10 03:57

I want to show place picker so that user can choose location of his/her own choice. But place picker child activity automatically closes after launch. I\'ve check the API ke

6条回答
  •  天命终不由人
    2020-12-10 04:30

    After A lot of debugging i solved it myself. The problem was package name..Android studio manage package name by itself on project creation. I change the package name in manifest and it was working perfectly fine. but when i get API key from google developers console for place picker, place picker automatically closes without a single character of error.

    Then I change the package name by going into -> Module Settings -> Flavors and change the Application ID and it fix the problem.

提交回复
热议问题