Appcelerator,Android在某些设备上与Ti.Map模块崩溃

时间:2016-11-23 16:50:17

标签: android dictionary crash appcelerator

我目前正在使用appcelerator Titanium来开发使用Alloy框架和Ti.MAP模块的多平台应用程序。 看起来在某些设备上,这个MapView似乎会在应用程序崩溃的情况下创建一个错误" app停止工作"只要应用加载地图。 例如,它在Nexus 6上运行良好,并且不适用于三星Galaxy S6。 如果我评论我的行// $ .map.add(mapview),该应用程序在两个设备上运行良好。但是,如果我取消注释这一行,应用程序在galaxy S6上崩溃,没有任何错误消息。

关于这一点的任何想法?

致以最诚挚的问候,

昆汀

编辑:问题似乎来自于annoations而不是来自地图本身。如果我评论我的行//map.addAnnotation(temp);它再次运作良好。

这是我使用的注释的代码示例:

<div class="ama-roster">
            <img class="img-circle img-rounded" src="http://www.bitrebels.com/wp-content/uploads/2011/02/Original-Facebook-Geek-Profile-Avatar-6.jpg" />
              <div class="ama-roster-content">
                <h4>First <br>Name</h4>
                <p>Boss</p>
                <p>firstname@mail.com</p>
              </div>
</div>

<div class="ama-roster">
            <img class="img-circle img-rounded" src="http://www.bitrebels.com/wp-content/uploads/2011/02/Original-Facebook-Geek-Profile-Avatar-6.jpg" />
              <div class="ama-roster-content">
                <h4>First Name</h4>
                <p>Boss</p>
                <p>firstname@mail.com</p>
              </div>
</div>

<div class="ama-roster">
            <img class="img-circle img-rounded" src="http://www.bitrebels.com/wp-content/uploads/2011/02/Original-Facebook-Geek-Profile-Avatar-6.jpg" />
              <div class="ama-roster-content">
                <h4>First <br>Name</h4>
                <p>Boss</p>
                <p>firstname@mail.com</p>
              </div>
</div>

停车:停车是我需要在点击事件监听器上使用的对象。

编辑2:pb似乎来自图像。如果我在注释对象描述上注释// image:...行,它可以正常工作..

0 个答案:

没有答案