CodeNameOne Google Maps

前端 未结 1 1287
执笔经年
执笔经年 2021-01-17 05:36

I am getting an error when I run a google maps app on an android for codename one. When I run it on the emulator I am getting no error. When I run it on a phone I get.

相关标签:
1条回答
  • 2021-01-17 05:48

    Yes. You do need to add the android.xapplication build hint so that your API key is provided. You don't need to add the android.xpermissions build hint. It will automatically be added by the library when you build int.

    The instructions for build hints are all in the README for the GoogleMaps cn1lib.

    The format for the build hint would be Name: "android.xapplication". Value: "<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="YOUR_ANDROID_API_KEY"/>" Use the IDE's UI to place the build hints. Don't try to paste them directly into the properties file.

    0 讨论(0)
提交回复
热议问题