zoukankan      html  css  js  c++  java
  • [Android_EclipseBug]Eclipse中导入Android项目时javalib类库丢失问题

    问题:

    Eclipse中导入Android4.1.1源码build path错误
    missing required library: 'out/target/common/obj/JAVA_LIBRARIES/google-common_intermediates/javalib.jar'
    missing required library: 'out/target/common/obj/JAVA_LIBRARIES/gsf-client_intermediates/javalib.jar'

    解决方法:

    .classpath 删除下面两行
    <classpathentry kind="lib" path="out/target/common/obj/JAVA_LIBRARIES/google-common_intermediates/javalib.jar"/>
    <classpathentry kind="lib" path="out/target/common/obj/JAVA_LIBRARIES/gsf-client_intermediates/javalib.jar"/>
    添加 <classpathentry kind="lib" path="/work/froyo/out/target/common/obj/JAVA_LIBRARIES/android-common_intermediates/javalib.jar"/>

    在eclipse中修改
    2.2.1. 通过create file from existing source 导入源代码
    2.2.2. 展开packages/providers/CalendarProvider/src
    2.2.3. 展开包: com.android.providers.calendar
    2.2.4. 右键点击包com.android.providers.calendar
    2.2.5. 选择 "new file"
    2.2.6. 在对话框中选择点击  "Advanced >>" 按钮, 可以看到"Link to file in the file system" checkbox,
    2.2.7. 勾选上 checkbox.  这时 "Browse..." 可用.
    2.2.8. 点击 "Browse..." 按钮,选择EventLogTags.java (e.g.,out/target/common/obj/APPS/CalendarProvider_intermediates/src/src/com/android/providers/calendar/EventLogTags.java)
    2.2.9. 点击OK
    2.2.10. 点击 Finish (in "New File")

    2.3 同样的方式修改com.android.providers.contacts的问题

    这样在problem view 窗口就不会有error,只有warning了,就可debug了。。。。。

  • 相关阅读:
    JEDEC标准(JESD216)S FDP对串行Flash在系统中的应用
    Gerrit使用简介
    Gerrit2安装配置
    SSH原理与运用(二):远程操作与端口转发
    SSH原理与运用(一):远程登录
    常用的几个工具网站
    MQTT、CoAP
    Gerrit代码Review实战
    net share
    Gitlab+Gerrit+Jenkins完整对接
  • 原文地址:https://www.cnblogs.com/webapplee/p/3771915.html
Copyright © 2011-2022 走看看