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: issues-unsubscr...@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to