android studio 导入aar报找不到类错误,Android studio aar文件错误类未找到
当我尝试在其他项目中使用导出的android库项目(aar格式)。我收到以下错误。Android studio aar文件错误类未找到> "Could not find class 'com.manish.core.helper.RegistrationHelper$1'"> "Could not find class 'com.manish.core.helper.Registrat
当我尝试在其他项目中使用导出的android库项目(aar格式)。我收到以下错误。Android studio aar文件错误类未找到
> "Could not find class 'com.manish.core.helper.RegistrationHelper$1'"
> "Could not find class 'com.manish.core.helper.RegistrationHelper$2'"
> "Could not find class 'com.manish.core.helper.RegistrationHelper$3'"
> "Could not find class 'com.manish.core.helper.RegistrationHelper$4'"
里面的AAR文件中,有一个文件“classes.jar”,它包含了所有的类文件,但我不明白错误的原因。
我正在使用android studio生成目录内部生成的aar文件。我还在gradle文件中添加了apply plugin: 'com.android.library'。
所有这些错误都仅限于匿名和静态类。
我gradle这个文件:
apply plugin: 'com.manish.application'
android {
compileSdkVersion 22
buildToolsVersion "23.0.0"
defaultConfig {
applicationId "com.manish.test"
minSdkVersion 10
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'junit:junit:4.12'
compile(name:'somerandomlibrary-debug', ext:'aar')
}
repositories{
flatDir{
dirs 'libs'
}
}
2015-09-20
manish
更多推荐
所有评论(0)