bjhexn opened a new issue, #13078:
URL: https://github.com/apache/lucene/issues/13078
### Description
private fun createIndex(): IndexWriter {
val path = Path(getDir("lunece", 0).path)
val fsDirectory = FSDirectory.open(path)
val analyzer = StandardAnalyzer()
val config = IndexWriterConfig(analyzer)
return IndexWriter(fsDirectory, config)
}
java.lang.NoSuchMethodError: No static method
version()Ljava/lang/Runtime$Version; in class Ljava/lang/Runtime; or its super
classes (declaration of 'java.lang.Runtime' appears in
/apex/com.android.art/javalib/core-oj.jar)
at
org.apache.lucene.util.Constants.<clinit>(Constants.java:40)
at
org.apache.lucene.store.FSDirectory.open(FSDirectory.java:161)
at
org.apache.lucene.store.FSDirectory.open(FSDirectory.java:156)
at
com.myapp.newest.MainActivity.createIndex(MainActivity.kt:46)
### Version and environment details
version:
implementation("org.apache.lucene:lucene-core:9.9.2")
implementation("org.apache.lucene:lucene-queryparser:9.9.2")
implementation("org.apache.lucene:lucene-analysis-common:9.9.2")
environment:
Android project
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]