Hello guys,
I use okhttputils2 to send requests to my webservice. When I compiled an app to run under Android 10, I received the following error when sending an HTTP request:
Error occurred on line: 188 (HttpJob)
java.lang.IllegalArgumentException: unexpected url: /executaquerycondor.php?Query=INSERT+INTO+requisicoesronda%28TipoSolicitacao%2C+StatusRequisicao%2C+CNPJ%2C+DataSolicitacao%2C+SmartID%2C+SmartToken%29+VALUES%28QMARK10QMARK%2C+QMARK0QMARK%2C+QMARK00.151.754BARRA0001-42QMARK%2C+QMARK13BARRA12BARRA2019+13%3A40%3A48QMARK%2C+QMARKc2a29353ef03580bQMARK%2C+QMARKdVHdk9VN_xQ%3AAPA91bFfnc7YJBiHRzL5GHKddQrpQhn_ZeFo9lKvlbmNpIo-GaOf17gatFE9KCPseeXCkM1lJ6vAOk-_3o6-RjYIbyqw1NOsK8VfmIbw5X5Nsx6F067rxP_PqDWZEV1NDbTcqKxmEtjRQMARK%29
at okhttp3.Request$Builder.url(Request.java:142)
at anywheresoftware.b4h.okhttp.OkHttpClientWrapper$OkHttpRequest.InitializeGet(OkHttpClientWrapper.java:392)
at com.condor.mobile.httpjob._download2(httpjob.java:102)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.BA$2.run(BA.java:370)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:220)
at android.app.ActivityThread.main(ActivityThread.java:6929)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:870)
This app runs normally on all previous Android versions.
I followed all procedures for upgrading the development environment (SDK, Manifest and Jetifier).
OkHttpUtils version is 2.90.
My Manifest:
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="29"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
AddManifestText(
AddPermission(android.permission.PERMISSION_ACCESS_FINE_LOCATION
)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
'************ Google Play Services Base ************
AddApplicationText(
<activity android:name="com.google.android.gms.common.api.GoogleApiActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="false"/>
<meta-data
android:name="com.google.android.gms.version"
android:value="@Integer/google_play_services_version" />
)
'************ Google Play Services Base (end) ************
AddApplicationText(
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="xxxxxx"/>
)
AddApplicationText(
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
)
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
SetApplicationAttribute(android:largeHeap,"true")
Please, has anyone had this problem?
I use okhttputils2 to send requests to my webservice. When I compiled an app to run under Android 10, I received the following error when sending an HTTP request:
Error occurred on line: 188 (HttpJob)
java.lang.IllegalArgumentException: unexpected url: /executaquerycondor.php?Query=INSERT+INTO+requisicoesronda%28TipoSolicitacao%2C+StatusRequisicao%2C+CNPJ%2C+DataSolicitacao%2C+SmartID%2C+SmartToken%29+VALUES%28QMARK10QMARK%2C+QMARK0QMARK%2C+QMARK00.151.754BARRA0001-42QMARK%2C+QMARK13BARRA12BARRA2019+13%3A40%3A48QMARK%2C+QMARKc2a29353ef03580bQMARK%2C+QMARKdVHdk9VN_xQ%3AAPA91bFfnc7YJBiHRzL5GHKddQrpQhn_ZeFo9lKvlbmNpIo-GaOf17gatFE9KCPseeXCkM1lJ6vAOk-_3o6-RjYIbyqw1NOsK8VfmIbw5X5Nsx6F067rxP_PqDWZEV1NDbTcqKxmEtjRQMARK%29
at okhttp3.Request$Builder.url(Request.java:142)
at anywheresoftware.b4h.okhttp.OkHttpClientWrapper$OkHttpRequest.InitializeGet(OkHttpClientWrapper.java:392)
at com.condor.mobile.httpjob._download2(httpjob.java:102)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.BA$2.run(BA.java:370)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:220)
at android.app.ActivityThread.main(ActivityThread.java:6929)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:870)
This app runs normally on all previous Android versions.
I followed all procedures for upgrading the development environment (SDK, Manifest and Jetifier).
OkHttpUtils version is 2.90.
My Manifest:
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="29"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
AddManifestText(
AddPermission(android.permission.PERMISSION_ACCESS_FINE_LOCATION
)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
'************ Google Play Services Base ************
AddApplicationText(
<activity android:name="com.google.android.gms.common.api.GoogleApiActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="false"/>
<meta-data
android:name="com.google.android.gms.version"
android:value="@Integer/google_play_services_version" />
)
'************ Google Play Services Base (end) ************
AddApplicationText(
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="xxxxxx"/>
)
AddApplicationText(
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
)
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
SetApplicationAttribute(android:largeHeap,"true")
Please, has anyone had this problem?