Solve the spark exception of scala version compiled by idea

The following error occurred:

object apache is not a member of package org

Check whether there is a corresponding Scala SDK in Libraries in project structure. If the scala SDK is not configured in global libraries, right-click copy to project libraries

Read More: