Android Question How to solve Disabling cache Problem?

Richard Goh

Active Member
Licensed User
Longtime User
Hi,
I have created a java jar earlier (Which work fined) and include in my b4a project.
I added a new class into the jar and trying to call it using below code.
But hit into error on "Cannot get methods of class: myProj.myUtils, disabling cache.".
There are 2 classes in the jar file. The problem is to call the new class but no problem on earlier one.
Any advice on this?

B4X:
    Dim jo As JavaObject
    jo = jo.InitializeStatic("myProj.myUtils").RunMethod("getInstance", Null)
 

Richard Goh

Active Member
Licensed User
Longtime User
Hi, any help or advice on this?
The problem is b4a program does not get reflected with the new jar update (with a new class added).
But I can refer to my old class without any problem for the same jar. So I suspect that the jar file been cached somewhere and not get refreshed with the new changes.

B4X:
Dim jo As JavaObject
    jo = jo.InitializeStatic("myProj.myUtilsOld").RunMethod("getInstance", Null)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…