0

I would like to use ArrayUtils.indexOf(int, int) in my Gradle project. IntelliJ marks ArrayUtils red with error: Cannot resolve symbol 'ArrayUtils'.

I can see that Arrayutils is from org.apache.commons.lang3 package, so I downloaded commons-lang3-3.12.0.jar and placed it in lib folder, added it as a dependency followed this answer.

However. it shows as grey in the project tree,

enter image description here

and I got this error with lang3

enter image description here

Actually, my project does not recognize apache.commons at all:

enter image description here

How can I use ArrayUtils.indexOf(int, int) in my Gradle project?

one-hand-octopus
  • 1,710
  • 1
  • 13
  • 28
  • 1
    Is there a reason why you need to use the JAR directly as opposed to standard dependency management provided by Gradle. – Cisco Mar 12 '22 at 02:30

0 Answers0