okhttp3.internal.Version class object not found

Created on 22 Dec 2015  Â·  13Comments  Â·  Source: square/okhttp

image
internal package have no this Object

Most helpful comment

Try running mvn package first?

All 13 comments

Try running mvn package first?

maven jar have this Object,but the master have no class object.

It's generated by the build system automatically.

On Tue, Dec 22, 2015 at 10:30 AM 谢照东 [email protected] wrote:

maven jar have this Object,but the master have no class object.

—
Reply to this email directly or view it on GitHub
https://github.com/square/okhttp/issues/2142#issuecomment-166647350.

Got it,Thx

@Yaccc How do you solve this problem?

@swankjesse Would you consider adding this to the Building section of the wiki? https://github.com/square/okhttp/wiki/Building
It may not be an obvious step for someone who is just starting out with Maven. I would make a PR and add it, but I don't think that can be done with wikis

In case someone else runs into this, I needed to run mvn compile instead of mvn package to generate the Version class.

I run mvn compile and mvn package both,
but after rebuild project (IDEA), the error okhttp3.internal.Version class object not found occured again!

how to fix it?

@swankjesse @JakeWharton is there a reason why Intellij + maven isn't treating this as generated sources and knowing to build automatically?

Unsure. Reporting the issue to JetBrains can't hurt though!

and , if it's not IntelliJ IDEA, what is your IDE??

and, what are the correct steps to run the source code?

Good question. n.b. I've seen it personally in Intellij after new project setup.

Which IDE do you use? @yschimke thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dannyZhou picture dannyZhou  Â·  3Comments

mleibner picture mleibner  Â·  3Comments

vanshg picture vanshg  Â·  3Comments

SandroMachado picture SandroMachado  Â·  3Comments

yschimke picture yschimke  Â·  3Comments