Я должен добавить Java 8+.Сборка с Maven в моем Android-проекте, Как это сделать?
На самом деле, я видел проект на github, поэтому, чтобы использовать этот проект, я должен добавить необходимые компоненты.
Это мой build.gradle файл.
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.vincent.filepickersample"
minSdkVersion 14
targetSdkVersion 26
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
Это зависимости :
dependencies {
//implementation 'org.apache.poi:poi:4.0.0'
//implementation 'org.apache.poi:poi-ooxml:4.0.0'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.1.0'
testCompile 'junit:junit:4.12'
compile project(':filepicker')
//implementation files('libs/poi-3.12-android-a.jar')
//implementation files('libs/poi-ooxml-schemas-3.12-20150511-a.jar')
implementation 'com.android.support:multidex:1.0.3'
implementation 'org.dhatim:fastexcel-reader:0.10.2'
}