前提・実現したいこと
kuromojiをandroid上で実装したいです
libs内にkuromoji-core-0.9.0.jarとkuromoji-ipadic-0.9.0.jarをいれた
発生している問題・エラーメッセージ
More than one file was found with OS independent path
該当のソースコード
app下
gradle
1apply plugin: 'kotlin-android-extensions' 2 3android { 4 compileSdkVersion 28 5 defaultConfig { 6 applicationId "com.example.hamataku.dimensionprac" 7 minSdkVersion 24 8 targetSdkVersion 28 9 versionCode 1 10 versionName "1.0" 11 testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 12 } 13 buildTypes { 14 release { 15 minifyEnabled false 16 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 } 18 } 19 20 dependencies { 21 implementation fileTree(dir: 'libs', include: ['*.jar']) 22 implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 23 implementation 'com.android.support:appcompat-v7:28.0.0-rc02' 24 implementation 'com.android.support.constraint:constraint-layout:1.1.3' 25 testImplementation 'junit:junit:4.12' 26 androidTestImplementation 'com.android.support.test:runner:1.0.2' 27 implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.22.5" 28 implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:0.22.5" 29 } 30}
project下
gradle
1buildscript { 2 ext.kotlin_version = '1.2.50' 3 repositories { 4 google() 5 jcenter() 6 } 7 dependencies { 8 classpath 'com.android.tools.build:gradle:3.1.4' 9 classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 10 11 // NOTE: Do not place your application dependencies here; they belong 12 // in the individual module build.gradle files 13 } 14} 15 16allprojects { 17 repositories { 18 google() 19 jcenter() 20 } 21} 22 23task clean(type: Delete) { 24 delete rootProject.buildDir 25}
試したこと
packagingOptions {
exclude 'META-INF/CONTRIBUTORS'
}
をいれてもダメでした。
当初coreはいれてなかったのですがcoreをいれないと
Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
とエラーがでます
補足情報(FW/ツールのバージョンなど)
AndroidStudio3.14を使用
ここにより詳細な情報を記載してください。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/09/06 08:48