Search code examples
javaandroidintellij-ideastanford-nlplibraries

Library works in IntelliJ doesn't but doesn't work in Android studio


I have java project based on Stanford Natural Language Processing libraries, which i want to redo in android studio, the libraries are causing issues. does anyone know how to import natural language processing library Stanford CoreNLP to android studio?

I've googled it, there doesn't seem to be a solution for this yet.

i have imported NLP libraries, and added them to android studio gradle file, i get this error when i run the app. Github link This is a sample test app, just making libraries work and then i'll add them to main project.

enter image description here


Solution

  • Update your Android SDK to version 26 or higher, and make sure Android Studio is using it.