I was just trying to compile my app with the new preview SDK 24 Android N in Android Studio 2.1 Preview 1.
I have in app billing in my app.
When trying to build the app I get the following exception
aidl.exe E 6416 3312 io_delegate.cpp:102] Error while creating directories: Invalid argument
Error:Execution failed for task ':app:compileDebugAidl'.
> java.lang.RuntimeException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Gebruiker\AppData\Local\Android\Sdk\build-tools\24.0.0-preview\aidl.exe'' finished with non-zero exit value 1
I already tried to use the latest IInAppBillingService.aidl but I still get the same error. When I remove the IInAppBillingService.aidl file the project compiles fine.
Here's a part of my build gradle
compileSdkVersion 'android-N'
buildToolsVersion "24.0.0 rc1"
defaultConfig {
applicationId "xxx.myapp"
minSdkVersion 14
targetSdkVersion 'N'
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
The IInAppBillingService.aidl file is in the following folder
src/main/aidl/com/android/vending/billing
How to fix this?