ITelephony.aidl在Eclipse编译不 [英] ITelephony.aidl not compiling in eclipse

查看:905
本文介绍了ITelephony.aidl在Eclipse编译不的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的code <一个href=\"http://stackoverflow.com/questions/7121508/android-taking-complete-control-of-phone-is-it-possible-how/7121586#7121586\">this回答,因为在这里我要补充 ITelephony.aidl 我项目源,我做到了。

I am using the code of this answer, where as I have to add ITelephony.aidl to my project source, I did that.

但这AIDL文件编译没有。有没有哪些是必需的任何其他步骤?

But this aidl file not compiling. Is there any other step which are required?

推荐答案

首先,在您的项目命名为com.android.internal.telephony建立src文件夹一个包,该包内创建一个文件,然后复制粘贴界面ITelephony和将文件保存为ITelephony.aidl。当你编译你会得到java文件的ITelephony在根folder.This是我做的,我的问题得到有效解决。

First create a package in the src folder in your project named com.android.internal.telephony and within that package create a file and copy paste the interface ITelephony and save the file as ITelephony.aidl. When you compile you will get the .java file for the ITelephony in the gen folder.This is what I did and my issue got solved.

希望这有助于

这篇关于ITelephony.aidl在Eclipse编译不的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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