preface
Okhttputils has always been used in network requests. Recently, gradle was upgraded from 3.2.1 to 4.2.0. The running project reported an error (call could not be found).
Android studio usage:
implementation ‘com.zhy:okhttputils:2.6.2’
Before upgrade
Android Studio:4.2.0
Gradle plug-in version: 3.2.1
Required version of gradle: 4.8.1
After upgrade
Android Studio:4.2.0
Gradle plug-in version: 4.2.0
Required version of gradle: 6.7.1
Operation results
Error: package okhttp3 does not exist
import okhttp3.Call;
solve
New: implementation ‘com. Squareup. Okhttp3: okhttp: 4.9.1’
I don’t know if there will be problems later. I feel that I still need to change a set of framework. After all, Hongshen has stopped maintenance.
Read More:
- [actual record of Android stepping on the pit] Android studio reports an error invalid gradle JDK configuration found after importing the project
- The file server reports an error of 413, and the file uploaded by nginx reports an error of 413 request entity too large
- The echots in Vue reports an error. After obtaining the DOM element, the chart can be displayed. The console still reports an error
- Android studio reports an error when building AAR for unity
- GeTx reports an error in the get request using getconnect
- GoogleIO 2013 Android fast networking framework Volley introduction
- Lamdba in the studio part reports an error. Observe lamdba reports an error but can run
- Android artifact xposed framework user guide
- Dca1000 reports an error and the SPI port cannot be connected
- A new virtual machine cannot be connected to the network (error fetching interface information device not found),
- request:fail url not in domain list or Cannot send network request to localhost
- Android stdio reports an error: “XXX keeps stopping” solution
- Android studio reported an error in the release package: Lint found fatal errors while assembling a release target
- Oracle reports an error and lsnrctl listening cannot be started
- The echo introduced in react reports an error: xaxis “0” not found
- Vs2017 reported an error. Pthread. H header file cannot be opened and cannot be found
- Hadoop reports an error. Cannot access scala.serializable and python MapReduce reports an error
- Unit Android converts c# class to JSON file and reports an error
- Docker creation container cannot find network card: error response from daemon: network XXXX not found
- [OpenGL · error] visual studio 2019 reports an error. It is an external symbol gladloadglloader that cannot be parsed. This symbol is referenced in the function main