我为何会有这个的任何想法都无法解析中的符号“数据库” net.sqlcipher
。我只是从GitHub克隆了SQLCipher Android Test并想进行测试。
谢谢...
在将compileOptions添加为JavaVersion 8并启用JACK之后,我现在可以进行编译
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
杰克选项被添加到里面 defaultConfig
jackOptions {
enabled true
}
现在我app/build.gradle
已经变成这样。
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "net.zetetic.sqlcipher.test"
minSdkVersion 14
targetSdkVersion 24
versionCode 1
versionName "1.0"
jackOptions {
enabled true
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
// For testing zip-based distributions:
//compile files('libs/sqlcipher.jar')
// For testing AAR packages:
compile 'net.zetetic:android-database-sqlcipher:3.5.9@aar'
}
非常感谢您的帮助。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句