IntelliJ not recognizing Rest Assured dependencies
Hi everyone,
I'm working on a Maven project in IntelliJ and trying to use Rest Assured for API testing, but I'm having trouble importing Rest Assured dependencies .
IntelliJ shows "Cannot resolve symbol 'Response'" when I try to import `io.restassured.response.Response`, even though I have the dependency in my pom.xml. I have a lot of problems just with Restassured…
Thanks in advance for any help!


请先登录再写评论。
You seem to have the dependencies on the test classpath, but your code is placed in the compile/runtime classpath. Have a look at your “scope” elements in the dependencies.
https://stackoverflow.com/a/29230903/2055163