1.拷贝development/ide/eclipse/.classpath到源代码根目录并修改.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”/>
2.在eclipse中修改
1). 通过Create Project from existing source 导入froyo源代码
2). 展开packages/providers/CalendarProvider/src
3). 展开包: com.android.providers.calendar
4). 右键点击包com.android.providers.calendar
5). 选择 “new file”
6). 在对话框中选择点击 “Advanced >>” 按钮, 可以看到”Link to file in the file system” checkbox,
7). 勾选上 checkbox. 这时 “Browse…” 可用.
8). 点击 “Browse…” 按钮,选择EventLogTags.java (e.g.,out/target/common/obj/APPS/CalendarProvider_intermediates/src/src/com/android/providers/calendar/EventLogTags.java)
9). 点击OK
10). 点击 Finish (in “New File”)
3.同样的方式修改com.android.providers.contacts的问题
0 条评论