android studio编译aidl,找不到类

Posted heshengjun

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了android studio编译aidl,找不到类相关的知识,希望对你有一定的参考价值。

apply plugin: ‘com.android.application‘

android {
compileSdkVersion 26
buildToolsVersion "26.0.0"
defaultConfig {
applicationId "com.tinywsn.myapplication"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile(‘proguard-android.txt‘), ‘proguard-rules.pro‘
}

}
sourceSets {
main {
java.srcDirs = [‘src/main/java‘, ‘src/main/aidl‘]
aidl.srcDirs = [‘src/main/aidl‘]
}
}

}

dependencies {
implementation fileTree(dir: ‘libs‘, include: [‘*.jar‘])
androidTestImplementation(‘com.android.support.test.espresso:espresso-core:3.0.1‘, {
exclude group: ‘com.android.support‘, module: ‘support-annotations‘
})
implementation ‘com.android.support:appcompat-v7:26.0.2‘
testImplementation ‘junit:junit:4.12‘
implementation ‘com.android.support.constraint:constraint-layout:1.0.2‘
}





































以上是关于android studio编译aidl,找不到类的主要内容,如果未能解决你的问题,请参考以下文章

Android Studio AIDL 自定义类型找不到问题

androidStudio中编译出现AIDL找不到接口类

Android:在aidl文件中找不到类java.util.ArrayList的导入

Android studio 中编译提示找不到 gradlew

Android Studio中如何创建AIDL

Android Studio Designer 找不到类