在我的项目中构建和重用android开源的Dialer源代码 [英] Build and reuse android open source Dialer source code in my project

查看:483
本文介绍了在我的项目中构建和重用android开源的Dialer源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 目前我克隆了来自 https://android.googlesource.com/platform/packages/的拨号程序源代码apps / Dialer /

  2. 似乎不是一个毕业生项目。我如何建立这个项目?

  3. 我需要将这个整个项目作为可重用的模块添加到我的项目中。你能帮我一下吗如何从这开始?

这个答案看起来很有信息 https://stackoverflow.com/a/8668334/3020568 ,但是我需要从那些试图构建这种应用程序的人那里获得更多的帮助。



我们尝试以下步骤。


  1. 从Google源代码中查出源代码。

  2. 试图在Android Studio中导入项目。

  3. 它在项目之外具有不能解决的依赖关系。 - 一些类和方法在源代码中没有引用。

提前感谢

解决方案

我知道这是旧的,但这是以后的参考。



到其余的源代码。您需要首先下载整个Android源代码(AOSP),然后构建它,因为AOSP附带的Dialer应用程序需要一些包含在AOSP中的框架文件;因此拨号程序代码可能并不适用于所有设备。最好的办法是使用教程从头开始构建拨号程序。


I have to integrate android opensource Dialer source code into my application and also need to do customizations on the same.

  1. Currently I cloned the Dialer source code from https://android.googlesource.com/platform/packages/apps/Dialer/
  2. It doesn't seems to be a gradle project. How can I build this project ?
  3. I need to add this entire project as reusable module in my project. Could you please help me on this. How can I start with this ?

This Answer seems very informative https://stackoverflow.com/a/8668334/3020568 but I need to get some more help from guys those who tried to build this type of applications.

WE tried below steps.

  1. Checked out source code from google source.
  2. Tried to import the project in Android Studio.
  3. It has dependencies outside the project which are not able to resolve. - Some classes and methods has no reference inside the source code.

Thanks in advance.

解决方案

I know this is old but this is for future reference.

You cannot build the Dialer application without access to the rest of the source code. You need to first download the whole Android source (AOSP) and then build it because the Dialer application that comes with AOSP requires some framework files which is included in AOSP; hence the Dialer code may not actually work on all devices. Your best bet is using a tutorial to build a dialer application from scratch.

这篇关于在我的项目中构建和重用android开源的Dialer源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆