Error:Execution failed for task ':android:compileDebugAidl'

Error:Execution failed for task ':android:compileDebugAidl'

我在编译 Android 代码时遇到错误。任何人都可以帮我处理代码。以下是徽标 - (为了隐私我删除了路径并将其命名为路径)

    Error:Execution failed for task ':android:compileDebugAidl'.
    > com.android.ide.common.internal.LoggedErrorException: Failed to run command:
        Path/Android/Sdk/build-tools/23.0.2/aidl -p/Path/Android/Sdk/platforms/android-23/framework.aidl -o/Path/android/build/generated/source/aidl/debug -I/Path/android/src -I/Path/android/src/debug/aidl -

I/Path/android/build/intermediates/exploded-aar/BFP/BaseGameUtils/1.0/aidl -
I/Path/android/build/intermediates/exploded-aar/com.android.support/support-v4/20.0.0/aidl -d/tmp/aidl7429266825249614170.d 

path/Android/vending/billing/IInAppBillingService
      Error Code:
        1
      Output:
        Some path/Android/vending/billing/IInAppBillingService.aidl:45 interface IInAppBillingService should be declared in a file called com/android/vending/billing/IInAppBillingService.aidl.

确保 IInAppBillingService.aidl 位于正确的位置。

文件夹层次应该是这样的。

这是我的失误!

在更改包名称时并非每个文件都得到更新,不知道为什么?

现在我检查了所有文件并手动更改了错误的包,现在它运行良好。

所以,当出现这种错误时,我建议您检查文件中的包名称。

Note: If you use the starting package with other than .com like .in, make sure billing package should be in .com