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

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

问题描述

我必须将 android 开源 Dialer 源代码集成到我的应用程序中,并且还需要对其进行自定义.

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

  1. 目前我从 https://android.googlesource.com 克隆了拨号器源代码/platform/packages/apps/Dialer/
  2. 它似乎不是一个 gradle 项目.我该如何构建这个项目?
  3. 我需要将整个项目添加为我的项目中的可重用模块.你能帮我解决这个问题吗?我该如何开始?
  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 ?

这个答案似乎非常有用https://stackoverflow.com/a/8668334/3020568但我需要得到那些试图构建此类应用程序的人的更多帮助.

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.

我们尝试了以下步骤.

  1. 从 google 源代码中检出源代码.
  2. 尝试在 Android Studio 中导入项目.
  3. 它在项目之外具有无法解析的依赖项.- 某些类和方法在源代码中没有引用.

提前致谢.

推荐答案

我知道这是旧的,但这是为了将来参考.

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

如果不访问其余的源代码,您将无法构建 Dialer 应用程序.您需要先下载完整的Android源代码(AOSP)然后构建它,因为AOSP自带的Dialer应用程序需要一些包含在AOSP中的框架文件;因此拨号器代码实际上可能不适用于所有设备.最好的办法是使用教程从头开始构建拨号器应用程序.

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开源拨号器源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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