【发布时间】:2017-05-18 15:12:53
【问题描述】:
我无法建立 Aidl 图书馆。
错误:
错误:任务 ':app:compileDebugAidl' 执行失败。 java.lang.RuntimeException: com.android.ide.common.process.ProcessException: 使用参数执行
'D:\mysdk\Android\android-sdk\build-tools\22.0.1\aidl.exe' 时出错
{-pD:\mysdk\Android\android-sdk\platforms\android-21\framework.aidl -...
dC:\Users\admin\AppData\Local\Temp\aidl6013369886374174489.d ...\dev\myaidllibrary\ICoffeeMakerRemoteService.aidl}
build.gradle:
apply plugin: 'com.android.library'
apply plugin: 'com.neenbedankt.android-apt'
android {
compileSdkVersion 21
buildToolsVersion '22.0.1'
defaultConfig {
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:21.0.0'
testCompile 'junit:junit:4.12'
provided 'com.google.auto.value:auto-value:1.2-rc1'
// needed for Android Studio
apt 'com.google.auto.value:auto-value:1.2-rc1'
apt 'com.ryanharter.auto.value:auto-value-parcel:0.2.0'
}
目录结构:
aidl->
ICoffeeMakerRemoteService.aidl
成分.aidl
java->
成分.java
我坚持这些,尝试了可能的解决方案。
【问题讨论】:
-
@siva35 试过了。它不工作。谢谢