Android Question Get unknown error (HTTPUTILS)

prokli

Active Member
Licensed User
Longtime User
Good evening!
After a very long time I tried to run a quite old project which was always successfully compiled in the past.
But in menatime, I receive this error message:

Code: Copy
B4A line: 241
If Parameters.Length > 0 Then sb.Append(\
shell\src\b4a\hud21\httpjob_subs_0.java:262: error: cannot find symbol
if (RemoteObject.solveBoolean(">",httpjob._parameters.getField(true,"length"),BA.numberCast(double.class, 0))) {
                                                     ^
  symbol:   method getField(boolean,String)
  location: variable _parameters of type parameters
1 erro


B4X: Copy
    Private httpjob1 As HttpJob

    httpjob1.Initialize("httpjob1", Me)

     httpjob1.Download(addr)        'result will be catched by JobDone() in this module
 
wrong library. it's okhttp and okhttputils2, not http and httputils. ok?
 
Upvote 0
Thanks for feedback but this seems not to be the reason!
Even when writing my very first version of this code I was using "okhttp" and "okhttputils2".
ANd never got this error!!
There might be some other reasons why compilation ist stopped with an error :o((
 
Upvote 0
Solved problem but unfortunatelly do not know why?!

I redeclared an Activity formerly named "Parameters" to "Param" and then compilation was successfully executed. So, it seems that an activity might not be called “Paramters”. But why??
 
Upvote 0
Back
Top