CodeNameOne Google地图

CodeNameOne Google地图

问题描述:

当我在Android上以代号 1运行google maps应用时出现错误。当我在模拟器上运行它时,我没有收到任何错误。当我在手机上运行它时。

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.

发生内部应用程序错误java.lang RuntimeException:等待浏览器桥的时间太长了

an internal application error occurred java.lang RuntimeException: waited too long for browser bridge

我认为问题是我需要添加构建提示。我可以找到将它们添加到哪里,但是我不确定它们应该采用哪种格式。我也不知道要添加什么格式。我想我发现有一条帖子说我需要添加
android.xapplication =
android:value = YOUR KEY />
android.xpermissions =

I think the problem is that I need to add build hints. I can find where to add them but I am not sure what format they should be in. I am also not sure what to add. I think I found a post that said I needed to add android.xapplication= android:value="YOUR KEY"/> android.xpermissions=

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

But I am not sure what format that looks like in the build hint entry form

是。您确实需要添加 android.xapplication 构建提示,以便提供您的API密钥。您无需添加 android.xpermissions 生成提示。

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.

构建提示的说明全部在适用于GoogleMaps cn1lib的自述文件

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

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

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.