【发布时间】:2013-01-25 13:15:16
【问题描述】:
我已经在我的 Android 应用中成功使用 RequestFactory 很长时间了,但现在当我尝试升级到地图 v2 时,当我包含
<fragment
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.google.android.gms.maps.SupportMapFragment" />
在我的 XML 布局文件中,出现错误:
01-25 08:08:41.978: E/AndroidRuntime(19854): java.lang.RuntimeException: Unable to resume activity{com.xx/com.xx.MyActivity}: java.lang.RuntimeException: The RequestFactory ValidationTool must be run for the com.xx.client.MyRequestFactory RequestFactory type
如果我从布局 XML 文件中删除片段代码,一切正常。
此片段如何影响我的 RequestFactory 验证,我该如何解决?
谢谢。
【问题讨论】:
-
哇,偶然发现了这个stackoverflow.com/questions/8049351/…,它解决了问题,但我还不明白为什么。
标签: android requestfactory android-maps-v2