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

后端 未结 10 820
我寻月下人不归
我寻月下人不归 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:08

    Add this code in build.gradle

    android {
        sourceSets {
            main {
                aidl.srcDirs = ['src']
            }
        }
    }
    

    Rebuild and import aidl class

提交回复
热议问题