我目前正在将Eclipse应用程序迁移到Android Studio.此应用正在使用应用内结算功能.
我的主要问题是编译项目和aidl文件(我想你们都使用这个文件)
我收到此错误消息:
Gradle: error: cannot find symbol class IInAppBillingService
Gradle: error: package IInAppBillingService does not exist
Run Code Online (Sandbox Code Playgroud)
因此,在一些教程之后,我将此文件从com.mypackage.billing移动到src/main/aidl(请参阅此参考)
但是,就像我那样,我收到这条消息:
Gradle:任务执行失败':xxxxxxxxxxx:compileDebugAidl'.
无法运行命令:(...)C:\ Users\xxxx\AndroidStudioProjects\xxxxxxProject\xxxxxxx\src\main\aidl\IInAppBillingService.aidl:45接口IInAppBillingService应在名为com\xxxxxxxx\billing\IInAppBillingService的文件中声明.aidl.
该消息显然与我上面链接的Google错误页面中的帖子相矛盾.
任何人都过分使这个aidl文件工作,可以帮助我吗?

请注意,我遵循的一些链接: