Hello,
I am developing it with Android studio+cordova.
The following error occurred in the build, and the error in CordovaLib was not addressed.
There are quite a few errors related to okhttp.
I would appreciate it if you could let me know.
C:\Users\app\platforms\android\CordovaLib\src\com\squareup\okhttp\Address.java:18: Error: Package com.squareup.okhttp.internal does not exist
import com.squareup.okhttp.internal.Util;
^
C:\Users\app\platforms\android\CordovaLib\src\com\squareup\okhttp\Address.java:25: Error: Package com.squareup.okhttp.internal does not exist
Do you happen to use Java 6?Okhttp requires Java 7 or higher, so it seems to be an error in Java 6 environment.Why don't you set your Java version to 7 or later and try again?
Okhttp's GitHub page had a similar issue.
© 2025 OneMinuteCode. All rights reserved.