私はhttpクライアントokhttp
を使いたいです。
以下のようにbundle.gradle
を使っています。
gradle
1/* 2 * This file was generated by the Gradle 'init' task. 3 * 4 * This generated file contains a sample Java project to get you started. 5 * For more details take a look at the Java Quickstart chapter in the Gradle 6 * user guide available at https://docs.gradle.org/4.8.1/userguide/tutorial_java_projects.html 7 */ 8 9plugins { 10 // Apply the java plugin to add support for Java 11 id 'java' 12 13 // Apply the application plugin to add support for building an application 14 id 'application' 15} 16 17// Define the main class for the application 18mainClassName = 'Jsonrpc' 19 20dependencies { 21 // This dependency is found on compile classpath of this component and consumers. 22 compile 'com.google.guava:guava:23.0' 23 compile 'com.squareup.okhttp3:okhttp:3.10.0' 24 25 // Use JUnit test framework 26 testCompile 'junit:junit:4.12' 27} 28 29// In this section you declare where to find the dependencies of your project 30repositories { 31 // Use jcenter for resolving your dependencies. 32 // You can declare any Maven/Ivy/file repository here. 33 jcenter() 34}
ドキュメントにも
compile 'com.squareup.okhttp3:okhttp:3.10.0'
とかけと書いてあります。
なぜこのようなエラーが出てしまうのでしょうか?
よろしくお願いします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。