使用 Android 插件的 Eclipse 中的错误消息
当我 Eclipse 时,我在日志上收到一大堆关于缺少“捆绑文件 URL”的错误消息。据我所知,没有任何明显的问题,但每次我打开 Android 项目时,日志中都会出现数十条错误消息,这似乎表明存在问题。
当我打开布局 XML 文件时,这些消息似乎被触发。
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.600
!MESSAGE Bundle file URL not found at path '/gscripts/IViewRule.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.618
!MESSAGE Bundle file URL not found at path '/gscripts/String.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.624
!MESSAGE Bundle file URL not found at path '/gscripts/Map.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.639
!MESSAGE Bundle file URL not found at path '/gscripts/INode.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.642
!MESSAGE Bundle file URL not found at path '/gscripts/MenuAction.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.645
!MESSAGE Bundle file URL not found at path '/gscripts/List.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.659
!MESSAGE Bundle file URL not found at path '/gscripts/IMenuCallback.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.662
!MESSAGE Bundle file URL not found at path '/gscripts/MenuAction.Action.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.679
!MESSAGE Bundle file URL not found at path '/gscripts/Boolean.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.682
!MESSAGE Bundle file URL not found at path '/gscripts/INodeHandler.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.686
!MESSAGE Bundle file URL not found at path '/gscripts/Set.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.702
!MESSAGE Bundle file URL not found at path '/gscripts/MenuAction.Choices.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.719
!MESSAGE Bundle file URL not found at path '/gscripts/MenuAction.Group.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.725
!MESSAGE Bundle file URL not found at path '/gscripts/IAttributeInfo.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.746
!MESSAGE Bundle file URL not found at path '/gscripts/IGraphics.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.760
!MESSAGE Bundle file URL not found at path '/gscripts/Rect.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.762
!MESSAGE Bundle file URL not found at path '/gscripts/DrawingStyle.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.767
!MESSAGE Bundle file URL not found at path '/gscripts/IDragElement.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.780
!MESSAGE Bundle file URL not found at path '/gscripts/DropFeedback.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.784
!MESSAGE Bundle file URL not found at path '/gscripts/Point.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.814
!MESSAGE Bundle file URL not found at path '/gscripts/_rules_engine.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:18.083
!MESSAGE Bundle file URL not found at path '/gscripts/ANDROID_URI.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:18.101
!MESSAGE Bundle file URL not found at path '/gscripts/ATTR_ID.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:18.125
!MESSAGE Bundle file URL not found at path '/gscripts/Closure.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:18.143
!MESSAGE Bundle file URL not found at path '/gscripts/ATTR_TEXT.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:18.565
!MESSAGE Bundle file URL not found at path '/gscripts/AndroidViewViewRuleBeanInfo.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:18.567
!MESSAGE Bundle file URL not found at path '/gscripts/BaseViewBeanInfo.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.518
!MESSAGE Bundle file URL not found at path '/gscripts/INode.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.520
!MESSAGE Bundle file URL not found at path '/gscripts/IDragElement.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.522
!MESSAGE Bundle file URL not found at path '/gscripts/DropFeedback.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.562
!MESSAGE Bundle file URL not found at path '/gscripts/AndroidWidgetTimePickerRuleBeanInfo.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.564
!MESSAGE Bundle file URL not found at path '/gscripts/IgnoredLayoutRuleBeanInfo.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.566
!MESSAGE Bundle file URL not found at path '/gscripts/BaseLayoutBeanInfo.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.830
!MESSAGE Bundle file URL not found at path '/gscripts/String.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.833
!MESSAGE Bundle file URL not found at path '/gscripts/INode.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.835
!MESSAGE Bundle file URL not found at path '/gscripts/MenuAction.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.837
!MESSAGE Bundle file URL not found at path '/gscripts/List.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.840
!MESSAGE Bundle file URL not found at path '/gscripts/ANDROID_URI.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.854
!MESSAGE Bundle file URL not found at path '/gscripts/IMenuCallback.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.856
!MESSAGE Bundle file URL not found at path '/gscripts/MenuAction.Action.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.860
!MESSAGE Bundle file URL not found at path '/gscripts/Boolean.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.863
!MESSAGE Bundle file URL not found at path '/gscripts/INodeHandler.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.866
!MESSAGE Bundle file URL not found at path '/gscripts/MenuAction.Choices.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.871
!MESSAGE Bundle file URL not found at path '/gscripts/IDragElement.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.873
!MESSAGE Bundle file URL not found at path '/gscripts/DropFeedback.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.877
!MESSAGE Bundle file URL not found at path '/gscripts/IFeedbackPainter.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.880
!MESSAGE Bundle file URL not found at path '/gscripts/IGraphics.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.882
!MESSAGE Bundle file URL not found at path '/gscripts/Rect.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.884
!MESSAGE Bundle file URL not found at path '/gscripts/DrawingStyle.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.892
!MESSAGE Bundle file URL not found at path '/gscripts/Point.groovy'
! ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.894
!MESSAGE Bundle file URL not found at path '/gscripts/Integer.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:46.023
!MESSAGE Bundle file URL not found at path '/gscripts/AndroidWidgetLinearLayoutRuleBeanInfo.groovy'
When I eclipse, I get a whole bunch of error messages on the log about a missing "Bundle file URL". Nothing is obviously broken as far as I can tell, but dozens of error messages in the log everytime I open up an Android project seems like it could indicate a problem.
The messages seem to be triggered when I open a layout XML file.
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.600
!MESSAGE Bundle file URL not found at path '/gscripts/IViewRule.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.618
!MESSAGE Bundle file URL not found at path '/gscripts/String.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.624
!MESSAGE Bundle file URL not found at path '/gscripts/Map.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.639
!MESSAGE Bundle file URL not found at path '/gscripts/INode.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.642
!MESSAGE Bundle file URL not found at path '/gscripts/MenuAction.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.645
!MESSAGE Bundle file URL not found at path '/gscripts/List.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.659
!MESSAGE Bundle file URL not found at path '/gscripts/IMenuCallback.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.662
!MESSAGE Bundle file URL not found at path '/gscripts/MenuAction.Action.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.679
!MESSAGE Bundle file URL not found at path '/gscripts/Boolean.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.682
!MESSAGE Bundle file URL not found at path '/gscripts/INodeHandler.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.686
!MESSAGE Bundle file URL not found at path '/gscripts/Set.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.702
!MESSAGE Bundle file URL not found at path '/gscripts/MenuAction.Choices.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.719
!MESSAGE Bundle file URL not found at path '/gscripts/MenuAction.Group.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.725
!MESSAGE Bundle file URL not found at path '/gscripts/IAttributeInfo.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.746
!MESSAGE Bundle file URL not found at path '/gscripts/IGraphics.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.760
!MESSAGE Bundle file URL not found at path '/gscripts/Rect.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.762
!MESSAGE Bundle file URL not found at path '/gscripts/DrawingStyle.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.767
!MESSAGE Bundle file URL not found at path '/gscripts/IDragElement.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.780
!MESSAGE Bundle file URL not found at path '/gscripts/DropFeedback.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.784
!MESSAGE Bundle file URL not found at path '/gscripts/Point.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:17.814
!MESSAGE Bundle file URL not found at path '/gscripts/_rules_engine.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:18.083
!MESSAGE Bundle file URL not found at path '/gscripts/ANDROID_URI.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:18.101
!MESSAGE Bundle file URL not found at path '/gscripts/ATTR_ID.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:18.125
!MESSAGE Bundle file URL not found at path '/gscripts/Closure.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:18.143
!MESSAGE Bundle file URL not found at path '/gscripts/ATTR_TEXT.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:18.565
!MESSAGE Bundle file URL not found at path '/gscripts/AndroidViewViewRuleBeanInfo.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 19:52:18.567
!MESSAGE Bundle file URL not found at path '/gscripts/BaseViewBeanInfo.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.518
!MESSAGE Bundle file URL not found at path '/gscripts/INode.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.520
!MESSAGE Bundle file URL not found at path '/gscripts/IDragElement.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.522
!MESSAGE Bundle file URL not found at path '/gscripts/DropFeedback.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.562
!MESSAGE Bundle file URL not found at path '/gscripts/AndroidWidgetTimePickerRuleBeanInfo.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.564
!MESSAGE Bundle file URL not found at path '/gscripts/IgnoredLayoutRuleBeanInfo.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.566
!MESSAGE Bundle file URL not found at path '/gscripts/BaseLayoutBeanInfo.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.830
!MESSAGE Bundle file URL not found at path '/gscripts/String.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.833
!MESSAGE Bundle file URL not found at path '/gscripts/INode.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.835
!MESSAGE Bundle file URL not found at path '/gscripts/MenuAction.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.837
!MESSAGE Bundle file URL not found at path '/gscripts/List.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.840
!MESSAGE Bundle file URL not found at path '/gscripts/ANDROID_URI.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.854
!MESSAGE Bundle file URL not found at path '/gscripts/IMenuCallback.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.856
!MESSAGE Bundle file URL not found at path '/gscripts/MenuAction.Action.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.860
!MESSAGE Bundle file URL not found at path '/gscripts/Boolean.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.863
!MESSAGE Bundle file URL not found at path '/gscripts/INodeHandler.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.866
!MESSAGE Bundle file URL not found at path '/gscripts/MenuAction.Choices.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.871
!MESSAGE Bundle file URL not found at path '/gscripts/IDragElement.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.873
!MESSAGE Bundle file URL not found at path '/gscripts/DropFeedback.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.877
!MESSAGE Bundle file URL not found at path '/gscripts/IFeedbackPainter.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.880
!MESSAGE Bundle file URL not found at path '/gscripts/IGraphics.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.882
!MESSAGE Bundle file URL not found at path '/gscripts/Rect.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.884
!MESSAGE Bundle file URL not found at path '/gscripts/DrawingStyle.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.892
!MESSAGE Bundle file URL not found at path '/gscripts/Point.groovy'
! ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:45.894
!MESSAGE Bundle file URL not found at path '/gscripts/Integer.groovy'
!ENTRY com.android.ide.eclipse.adt 1 0 2010-12-24 20:39:46.023
!MESSAGE Bundle file URL not found at path '/gscripts/AndroidWidgetLinearLayoutRuleBeanInfo.groovy'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以安全地忽略这些消息。他们正在记录对当前选择的适用规则文件的搜索 - 并且这些搜索消息不应该显示在错误日志中。在最新版本中(尚未完成,但您可以在tools.android.com 上获取预览快照),它们完全消失了(并且搜索算法已完全改变;我们不再依赖groovy 脚本来实现这一点。 )
(我从事 ADT 工作)
You can safely ignore those messages. They were documenting a search for applicable rule-files for the current selection -- and these search messages should NOT have been showing up in the error log. And in the latest release (which is not yet finished, but you can get preview snapshots at tools.android.com) they are completely gone (and the search algorithm has completely changed; we don't rely on groovy scripts for this anymore.)
(I work on the ADT)
转到
项目 ->清理
,然后清理您的项目。根据我的经验,Eclipse 的 Android 插件偶尔会出现错误警告,这种方法可以消除它们。
Go to
Project -> Clean
and then clean your project.From my experience, Android plugin for Eclipse ocassionaly has false warnings, and this way works for eliminating them.
我最近就遇到过这种情况。 UI 编辑器正在尝试实例化一个控件,而该控件在其构造函数中的某处引发异常。
如果此 xml 布局是您创建的自定义控件,请尝试通过注释掉一些行来调试它,直到找到罪魁祸首。就我而言,我试图在自定义控件的构造函数中加载共享首选项,该控件仅在设计器中引发异常。我添加了一个 try catch 来修复它。
希望有帮助。
I had this happen to me recently. The UI editor is trying to instantiate a control and that control is throwing an exception somewhere in its constructor.
If this xml layout is a custom control you created, try to debug it by just commenting out some lines until you find the culprit. In my case I was trying to load shared preferences in the constructor of a custom control that was throwing an exception only in the designer. I added a try catch around that to fix it.
Hope that helps.