当前位置: 代码迷 >> Android >> Contacts编译环境的有关问题
  详细解决方案

Contacts编译环境的有关问题

热度:14   发布时间:2016-05-01 21:13:21.0
Contacts编译环境的问题
下载了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 markers at this line
- The type Contacts.Intents.Insert is deprecated
- The import com.android.internal.telephony cannot be 
resolved
  在网上查,有网友说:telephony.CallerInfo是不公开的,在SDK中是没有的,但是可以找到源文件。

  不知道再向下进行还会遇到什么问题。

  现在怀疑我建立的环境是开发android普通应用的,用来编译Contacts是否本身就是有问题的?应该怎么办?请有经验的人指教。
   


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

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