Hello, I'm also getting java.lang.NoSuchFieldException. I had an older version of b4a. I'm recompiling wit 8.8. It works fine when I do it from one computer. I moved al my files to another computer also with 8.8.
I get the same error whether I try to load an image with:
ImgName = "flagusa2_2"
myFlag.Bitmap = GetPngFromResource(ImgName)
or with:
Sub SetNinePatchDrawable(Control As View, ImageName As String)
Dim r As Reflector
Dim package As String
Dim id As Int
package = r.GetStaticField("anywheresoftware.b4a.BA", "packageName")
id = r.GetStaticField(package & ".R$drawable", ImageName)
r.Target = r.GetContext
r.Target = r.RunMethod("getResources")
Control.Background = r.RunMethod2("getDrawable", id, "java.lang.int")
End Sub
It all work fine when I compile from my other computer into the same device. The only difference is: On the computer that works I'm connecting via bluethooth and on the computer that fails, I'm connecting via USB.
Thanks