Android Question LoadBitmapResize error

Alberto Michelis

Well-Known Member
Licensed User
Hi, Ive opend an old project, open the designer, change some images sizes, recompile and gettting the following error

B4A Version: 8.80
Parsing code. Error
Error parsing program.
Error description: Undeclared variable 'loadbitmapresize' is used before it was assigned any value.
Error occurred on line: 266 (HttpJob)
Return LoadBitmapResize(HttpUtils2Service.TempFolder, taskId, Width, Height, KeepAspectRatio)

I search the project for LoadBitmapResize but nothing, only I use id LoadBitmap, so I think its from the designer but I can find it.

Thanks for your help
 

Alberto Michelis

Well-Known Member
Licensed User
I had HttpJob and OkHttpUtils2 , delete HttpJob but the error persists,
Please seee images.
Clicking on the log error does nothing and I dont know which line 266 it refers to.

q.png
l.png
 

Alberto Michelis

Well-Known Member
Licensed User
The app compiles ok in b4a 7.01 but not in 8.8
Looking at the Libraries folder, I have the same OkHttpUtils2.jar and xml in both but 8.80 adds a OkHttpUtils2.b4xlib
Ive tried to rename it and then b4a sais it does not find it. It happend in 8.8 and NOt in 7.01
Any idea of why?
q.png
 

Alberto Michelis

Well-Known Member
Licensed User
Ive Deleted jar and xml, check they are not in the aditional folder
Compiled and the error persists...
q.png

Do I have to delete the rest of OKhttp* files ?
 

sorex

Expert
Licensed User
my OkHttp files are from 31/12/2018. Remove those in the additional lib folder as you probably have newer ones in the program folder.

and refresh the lib list or close and reopen the project
 

sorex

Expert
Licensed User
they should be under "c:\Program Files (x86)\Anywhere Software\Basic4android\Libraries\"
 

sorex

Expert
Licensed User
this is what I have

B4X:
OkHttp.jar    52 340    31/12/2018 11:32    -a--
OkHttp.xml    15 326    31/12/2018 11:32    -a--
okhttp-3.5.0.jar    350 361    31/12/2018 11:32    -a--
OkHttpUtils2.b4xlib    3 967    31/12/2018 11:32    -a--
OkHttpUtils2.jar    12 228    31/12/2018 11:32    -a--
OkHttpUtils2.xml    12 079    31/12/2018 11:32    -a--
 

Alberto Michelis

Well-Known Member
Licensed User
May be Im having a worst problem...
I open b4a and try to compile the project suggested as a test and get the following error:
q.png

Ive downloaded java 211 and reinstall it, run the android sdk and install all files suggested and nothing...
 

sorex

Expert
Licensed User
are you using the new (B4A) method to download the SDK or the old one?
 
Top