【问题标题】:CodeNameOne Google MapsCodeNameOne 谷歌地图
【发布时间】:2017-04-03 19:37:33
【问题描述】:

当我在 android 上运行代号为 one 的 google maps 应用程序时出现错误。当我在模拟器上运行它时,我没有收到任何错误。当我在手机上运行它时,我得到了。

发生内部应用程序错误 java.lang RuntimeException: wait too long for browser bridge

我认为问题在于我需要添加构建提示。我可以找到添加它们的位置,但我不确定它们应该采用什么格式。我也不确定要添加什么。我想我找到了一个帖子说我需要添加 android.x应用程序= android:value="你的钥匙"/> android.xpermissions=

但我不确定构建提示输入表单中的格式是什么

【问题讨论】:

    标签: codenameone


    【解决方案1】:

    是的。您确实需要添加 android.xapplication 构建提示,以便提供您的 API 密钥。您不需要添加 android.xpermissions 构建提示。它会在你构建 int 时由库自动添加。

    构建提示的说明都在README for the GoogleMaps cn1lib中。

    构建提示的格式为名称:“android.xapplication”。值:“<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="YOUR_ANDROID_API_KEY"/>”使用 IDE 的 UI 放置构建提示。不要试图将它们直接粘贴到属性文件中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多