我目前正在尝试使用 openimaj Java 库中的依赖项构建一个 android studio 项目。
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.example.mapinguari.myapplication"
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'org.openimaj:openimaj:1.3.1'
}
是我的模块构建文件。同步到 IDE 时不会报告错误。
但是,当我尝试在其中一个源文件中构造任何类时,Android Studio 无法识别 openimaj 依赖项中的任何类。
非常感谢任何帮助。
谢谢!