how can I add the aidl file to Android studio (from the in-app billing example)

后端 未结 10 787
我寻月下人不归
我寻月下人不归 2020-11-27 11:45

I am currently migrating an Eclipse app to Android Studio. This app was using the in app billing.

My main problem is to compile the project and the aidl file (I gues

10条回答
  •  一向
    一向 (楼主)
    2020-11-27 12:21

    We need to add

    1. create folder - src/main/aidl/packagename and place aidl file under this.

    2. In the aidl file - mention the package name. package packagename

    Now clean the project, rebuild the project - We can the corresponding java file for the aidl generated in app\build\generated\source\aidl\debug\packagename\youraidl.java

提交回复
热议问题