下载了Contacts。试图在avd上运行起来。但是遇到了一些问题:
1、没有JAVA的工程文件。在别的地方考了 .project 和 default.properties 文件,可以被导入了。这个就算是解决了。2、在xml中有很多的重复定义:  <string name="export_to_sdcard" product="nosdcard" msgid="7201274701382901259">"Exportera till USB-enhet"</string>
  <string name="export_to_sdcard" product="default" msgid="2597105442616166277">"Exportera till SD-kort"</string>
报错,我只好删掉一个。
          这个也算是解决了。3、对于 import com.google.android.collect.Maps;
    说 The import com.google cannot be resolved.   对于 import com.android.internal.telephony.CallerInfo;
    说 Multiple ers at this line
- The type Contacts.Intents.Insert is deprecated
- The import com.android.internal.telephony cannot be 
 resolved
    在网上查,有网友说:telephony.CallerInfo是不公开的,在SDK中是没有的,但是可以找到源文件。    不知道再向下进行还会遇到什么问题。    现在怀疑我建立的环境是开发android普通应用的,用来编译Contacts是否本身就是有问题的?应该怎么办?请有经验的人指教。
    

解决方案 »

  1.   

    你得把源代码的jar搞过来,作为第三方jar,放在工程中。
    这个是在源代码环境中才好编译的,你放在源码中,编译完了再安装到avd上试试能不能工作
      

  2.   

    如果你的目的是修改系统的应用,还是安装个虚拟机,在linux环境下编译是王道啊。
      

  3.   

    同意,系统源码还是在Ubuntu上编译吧
      

  4.   


    是,准备在Linux下编译了。
      

  5.   

    我要修改Contacts中ContactsListActivity的UI布局,要怎么做啊,,,请大神们指点下啊...