
internal package have no this Object
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.
Most helpful comment
Try running
mvn packagefirst?