Ad
Cannot Resolve Symbol 'database' In Net.sqlcipher Import In Android Studio
Any idea why I am having this cannot resolve symbol 'database' in net.sqlcipher
. I simply cloned SQLCipher Android Test from GitHub and wanted to test.
have also attached the screenshot for reference.
Thank you...
Ad
Answer
I am able to compile now after I've added compileOptions as JavaVersion 8 and enabled JACK
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
Jack Options is added inside defaultConfig
jackOptions {
enabled true
}
Now my app/build.gradle
has become like this.
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:[email protected]'
}
Thanks a lot for your helps guys.
Ad
source: stackoverflow.com
Related Questions
- → should I choose reactjs+f7 or f7+vue.js?
- → Phonegap Android write to sd card
- → Local reference jquery script in nanohttpd (Android)
- → Click to navigate on mobile devices
- → How to allow api access to android or ios app only(laravel)?
- → Access the Camera and CameraRoll on Android using React Native?
- → React native change listening port
- → What is the default unit of style in React Native?
- → Google play market autocomplete icon
- → Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of `ListView`
- → Using Laravel with Genymotion
- → react native using like web-based ajax function
- → react native pdf View
Ad