Android Question Barcode Detector Vision

em28

Member
Hi, on android 4.2.2 i get from builder isOperation = False. This code was working fine before on this mobile phone. It is hard for me to pin point when it stoped working but could be when changing to newer targetSDK (after updating to new version of b4a and a lot of maven errors). Apperently does not work also in Android 7.0, on 8.0 and 10.0 it works without problems.

B4X:
Private Sub CreateDetector (Codes As List)
    Dim ctxt As JavaObject
    ctxt.InitializeContext
    Dim builder As JavaObject
    builder.InitializeNewInstance("com/google/android/gms/vision/barcode/BarcodeDetector.Builder".Replace("/", "."), Array(ctxt))
    Dim barcodeClass As String = "com/google/android/gms/vision/barcode/Barcode".Replace("/", ".")
    Dim barcodeStatic As JavaObject
    barcodeStatic.InitializeStatic(barcodeClass)
    Dim format As Int
    For Each formatName As String In Codes
        format = Bit.Or(format, barcodeStatic.GetField(formatName))
    Next
    builder.RunMethod("setBarcodeFormats", Array(format))
    Try
        detector = builder.RunMethod("build", Null)
        Dim operational As Boolean = detector.RunMethod("isOperational", Null)
        Log("Is barcode detector operational: " & operational)

        BarCodeOperational = operational
    Catch
        BarCodeOperational = False
        Log(LastException)
    End Try
End Sub

It does not go into Catch, it just returnes false in method isOperational (detector.RunMethod)

It also sometimes crashes with following error, since it gets to this code when it will try to analyze frame, i think that sometimes would even receive isOperational = true, because Camera1_Preview has check if BarCodeOperationl = True on start of sub;
B4X:
Cannot get methods of class: com.google.android.gms.vision.Frame$Builder, disabling cache.
Error occurred on line: 130 (OperationsScanner)
java.lang.RuntimeException: Method: setImageData not found in: com.google.android.gms.vision.Frame$Builder

B4X:
Sub Camera1_Preview (data() As Byte)
    If BarCodeOperational And BarCodePause = False Then
    ...
            Dim frameBuilder As JavaObject
            Dim bb As JavaObject
            bb = bb.InitializeStatic("java.nio.ByteBuffer").RunMethod("wrap", Array(data))
            frameBuilder.InitializeNewInstance("com/google/android/gms/vision/Frame.Builder".Replace("/", "."), Null)
            Dim cs As CameraSize = camEx.GetPreviewSize
            frameBuilder.RunMethod("setImageData", Array(bb, cs.Width, cs.Height,  842094169))

HEre is what i have in manifest
B4X:
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="29"/>

Also additional jars
B4X:
#AdditionalJar: com.google.android.gms:play-services-vision
#AdditionalJar: com.google.android.gms:play-services-base

This was working for years, so must be some "recent" change (by recent could be anywhere in last couple of months).

I am not sure if any code posted would help, more or less everything is the same as Erel example for barcode scanner. Except changes made few years ago to support landscape orientation. But all was fine and working on old phones before.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

em28

Member
Hi Erel,
currently i am trying to make your example app to work, so manifest code is the same as it was downloaded. Or could you point me to part what is missing? Here is code from manifest from your example

B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="26"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
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.gms.vision.DEPENDENCIES"
    android:value="barcode,,face" />
)

I am aware of download, i did start app more than 20 times, and it is always unavailable. Whole day i was trying to make it work, so it must have been downloaded already (actualy, phone on which i am testing did have already downloaded as it was working fine couple of months ago on this exact phone)

Unfortunately client is a large company with hundrets of those devices which are used for crucial operations inside company - app is used for their task/operation management. I have old release from couple of months ago and everything was working fine back then. This phones did have operational barcode scanning, it suddenly stopped on new release.

Is there anything else i could try? Because i simply can not skip those devices, as company can not just throw away phones and buy new ones, and all was working perfectly - actualy they have some phones still on old app version, and it is working fine - they use them every day, in three shifts, scanning barcodes as their main activity. Did maybe google change something? Put some kind of restriction on their service? Why was it working fine in old builds?

When one builds app (release) does something gets included inside? Like some dependencies?
What about this... AdditionalJar: com.google.android.gms:play-services-vision ... can i maybe specify some kind of older version here? Does during rebuild maybe include latest, that does not support older android devices?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

em28

Member
This latest version also returns false, for isOperational. That is, returns toast message "Failed to create detector"

Is there anything else i can try?
 
Upvote 0

em28

Member
I did uninstall all, internet connection is present, Cleared cache for everything, google play, all applications that are on the phone. So it should be clean.
Here is my log... all i can see is it complains that it cannot find module or something. Like vision is not installed... And some nativeGetEnabledTags...
As far as i can understand either vision is not available or phone does not want to download it for some strange reason... Is that correct?
(log is from your latest barcode app)



B4X:
Logger connected to:  motorola Nexus 6
--------- beginning of /dev/log/main
boot class :
  (0) core.jar
  (1) core-junit.jar
  (2) bouncycastle.jar
  (3) ext.jar
  (4) framework.jar
  (5) telephony-common.jar
  (6) mms-common.jar
  (7) android.policy.jar
  (8) services.jar
  (9) apache-xml.jar
  (10) mediatek-common.jar
  (11) mediatek-framework.jar
  (12) mediatek-op.jar
  (13) secondary-framework.jar
  (14) CustomProperties.jar
  (15) am.jar
threadid=1: interp stack at 0x40c29000
DexOpt: resolve class illegal access: Landroidx/core/app/NotificationCompat$WearableExtender; -> Landroid/app/Notification$Action;
DexOpt: access denied from Landroidx/core/app/NotificationCompat; to field Landroid/app/Notification;.actions
DexOpt: couldn't find field Landroid/view/inputmethod/EditorInfo;.contentMimeTypes
DexOpt: load 159ms, verify+opt 1504ms, 3047500 bytes
zygote get new systemTid : 1122
threadid=2: interp stack at 0x5a2bd000
threadid=3: interp stack at 0x5a3c5000
Elevating priority from 0 to -8
threadid=4: interp stack at 0x5a4cd000
zygote get thread init done
create interp thread : stack size=32KB
create new thread
new thread created
update thread list
threadid=5: interp stack at 0x5d30c000
threadid=5: created from interp
start new thread
threadid=5: notify debugger
create interp thread : stack size=32KB
threadid=5 (ReferenceQueueDaemon): calling run()
create new thread
new thread created
threadid=6: interp stack at 0x5d414000
update thread list
threadid=6: created from interp
start new thread
threadid=6: notify debugger
threadid=6 (FinalizerDaemon): calling run()
create interp thread : stack size=32KB
create new thread
new thread created
update thread list
threadid=7: interp stack at 0x5d51c000
threadid=7: created from interp
start new thread
threadid=7: notify debugger
threadid=7 (FinalizerWatchdogDaemon): calling run()
threadid=8: interp stack at 0x5d922000
threadid=9: interp stack at 0x5da2a000
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
open_cached_dex_file : /data/app/b4a.example-2.apk /data/dalvik-cache/data@[email protected]@classes.dex
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
-----agoldPhoneStateListener-----
----------mPhoneListenerFlag=false
Could not find method android.app.AlarmManager.setAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAt
VFY: unable to resolve virtual method 133: Landroid/app/AlarmManager;.setAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0025
Could not find method android.app.AlarmManager.setExactAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAtExact
VFY: unable to resolve virtual method 135: Landroid/app/AlarmManager;.setExactAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0025
Could not find method android.app.AlarmManager.setExact, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAtExact
VFY: unable to resolve virtual method 134: Landroid/app/AlarmManager;.setExact (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0036
Could not find method android.content.Context.startForegroundService, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceImpl
VFY: unable to resolve virtual method 557: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
VFY: replacing opcode 0x6e at 0x002b
common created.
create interp thread : stack size=32KB
create new thread
new thread created
update thread list
threadid=10: interp stack at 0x5e02f000
threadid=10: created from interp
start new thread
threadid=10: notify debugger
threadid=10 (Thread-1514): calling run()
Starting remote logger. Port: 35352
Could not find method android.content.Context.startForegroundService, referenced from method anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.startServiceFromReceiver
VFY: unable to resolve virtual method 557: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
VFY: replacing opcode 0x6e at 0x009f
Could not find method android.content.Context.startForegroundService, referenced from method anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.startServiceFromReceiver
VFY: unable to resolve virtual method 557: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
VFY: replacing opcode 0x6e at 0x00b8
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
--onServiceStateChanged,state=SIM1 1 home null null null  Unknown CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=true Regist state: 0
--onServiceStateChanged,state=SIM2 3 home null null null  Unknown CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false Regist state: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
loaded /vendor/lib/egl/libEGL_mtk.so
loaded /vendor/lib/egl/libGLESv1_CM_mtk.so
loaded /vendor/lib/egl/libGLESv2_mtk.so
Enabling debug mode 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
create interp thread : stack size=32KB
create new thread
new thread created
update thread list
threadid=11: interp stack at 0x5f01b000
threadid=11: created from interp
start new thread
threadid=11: notify debugger
threadid=11 (Thread-1515): calling run()
*** Debugger waiting for connection (0) ***
onWindowFocus: null softInputMode=290 first=true flags=#1810100
START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView{41b10af8 V.E..... R.....ID 0,0-540,960} ic=null tba=android.view.inputmethod.EditorInfo@41b93750 controlFlags=#104
Starting input: Bind result=InputBindResult{null com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME #399}
ignoring event: create_menu
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
*** Debugger waiting for connection (1) ***
[CDS]rx timeout:10000
*** Service (starter) Create ***
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
** Service (starter) Start **
Unexpected value from nativeGetEnabledTags: 0
** Activity (main) Create, isFirst = true **
GC_CONCURRENT freed 696K (11716), 18% free 3928K/4744K, paused 2ms+3ms, total 21ms
WAIT_FOR_CONCURRENT_GC blocked 14ms
Could not find class 'dalvik.system.DelegateLastClassLoader', referenced from method com.google.android.gms.dynamite.DynamiteModule.zza
VFY: unable to resolve new-instance 3746 (Ldalvik/system/DelegateLastClassLoader;) in Lcom/google/android/gms/dynamite/DynamiteModule;
VFY: replacing opcode 0x22 at 0x00b3
DexOpt: unable to opt direct call 0x5edc at 0xc4 in Lcom/google/android/gms/dynamite/DynamiteModule;.zza
Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.
Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0
threadid=12: interp stack at 0x5f6e3000
[CDS]rx timeout:10000
After accept
create interp thread : stack size=32KB
create new thread
new thread created
update thread list
threadid=13: interp stack at 0x5f6eb000
threadid=13: created from interp
start new thread
threadid=13: notify debugger
threadid=13 (Thread-1518): calling run()
create interp thread : stack size=32KB
create new thread
new thread created
update thread list
threadid=14: interp stack at 0x5f7f3000
threadid=14: created from interp
start new thread
threadid=14: notify debugger
threadid=14 (Thread-1519): calling run()
create interp thread : stack size=32KB
create new thread
new thread created
update thread list
threadid=15: interp stack at 0x5f8fb000
threadid=15: created from interp
start new thread
threadid=15: notify debugger
threadid=15 (java.lang.ProcessManager): calling run()
Local module descriptor class for com.google.android.gms.vision.barcode not found.
Considering local module com.google.android.gms.vision.barcode:0 and remote module com.google.android.gms.vision.barcode:0
Error loading optional module com.google.android.gms.vision.barcode: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
Native handle not yet available. Reverting to no-op handle.
Could not find class 'android.media.Image$Plane[]', referenced from method com.google.android.gms.vision.barcode.BarcodeDetector.detect
VFY: unable to resolve check-cast 4383 ([Landroid/media/Image$Plane;) in Lcom/google/android/gms/vision/barcode/BarcodeDetector;
VFY: replacing opcode 0x1f at 0x0062
Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.
Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0
Local module descriptor class for com.google.android.gms.vision.barcode not found.
Considering local module com.google.android.gms.vision.barcode:0 and remote module com.google.android.gms.vision.barcode:0
Error loading optional module com.google.android.gms.vision.barcode: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
Skipped 105 frames!  The application may be doing too much work on its main thread.
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
Unexpected value from nativeGetEnabledTags: 0
 
Upvote 0

em28

Member
Oh, here are some additional information... just in case i have something wrong here, maybe wrong jar or something
javac.exe: C:\Program Files\Java\jdk1.8.0_271\bin\javac.exe
android.jar: C:\Android\platforms\android-30\android.jar
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
javac.exe: C:\Program Files\Java\jdk1.8.0_271\bin\javac.exe
android.jar: C:\Android\platforms\android-30\android.jar
Completely irrelevant.

The problem is in Google SDK itself.

The relevant line is this:
Native handle not yet available. Reverting to no-op handle.

For some reason it failed to download the dependency. Updating Google Play Services, on the device, might help.
 
Upvote 0

em28

Member
Reverted google play services to factory version, it warned about update, updated to latest (same as before i reverted it) and still the same "Failed to create detector".
Strange is that this was all working before on this same phone. Any other idea i could try?
 
Upvote 0

em28

Member
So after two days it suddenly started to pass CreateDetector - with no change in code, or any downloads, or any turn on/off cycles... It can not be that it took long time to download because internet speed is really fast.

Now i get these errors:

B4X:
Could not find method android.media.Image$Plane.getBuffer, referenced from method com.google.android.gms.vision.Frame$Builder.setPlanes
VFY: unable to resolve virtual method 1260: Landroid/media/Image$Plane;.getBuffer ()Ljava/nio/ByteBuffer;
VFY: replacing opcode 0x6e at 0x0027
Unable to match class for part: '[Landroid/media/Image$Plane;III)Lcom/google/android/gms/vision/Frame$Builder;'
Cannot get methods of class: com.google.android.gms.vision.Frame$Builder, disabling cache.
Error occurred on line: 67 (Main)
java.lang.RuntimeException: Method: setImageData not found in: com.google.android.gms.vision.Frame$Builder
    at anywheresoftware.b4j.object.JavaObject$MethodCache.getMethod(JavaObject.java:366)
    at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:119)
    at anywheresoftware.b4a.samples.camera.main._camera1_preview(main.java:772)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1082)
    at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:1037)
    at anywheresoftware.b4a.samples.camera.cameraexclass._camera_preview(cameraexclass.java:639)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
    at anywheresoftware.b4a.objects.CameraW$2$1$1.onPreviewFrame(CameraW.java:147)
    at android.hardware.Camera$EventHandler.handleMessage(Camera.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:153)
    at android.app.ActivityThread.main(ActivityThread.java:5297)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
    at dalvik.system.NativeStart.main(Native Method)
null: 32

Note: all this is currently in demo app from Erel
 
Upvote 0

Drago Bratko

Active Member
Licensed User
Longtime User
What I notice is that older version of same application compiled before update (don't know of what to be honest) are working fine on ALL devices (including Android 4).
When that 'old' version is compiled with current version of B4A and SDK, it's not working any more.

Is that issue related to new version of SDK? Or B4A? Or something else? Do we know source of a problem?

I ask because if problem is SDK, maybe we can install old version of it (if that's possible) ... what do you think?
 
Upvote 0

Luciano Anselmetti

Member
Licensed User
Hi to all,
I too have a similar issue using vision barcode decoder. The particolarity is that it works correctly on some device, and on others, same device model (LG K9) and same Android version (7), not works. The difference, effectively, is that where works, the device had internet connection when I installed the app the first time, where not work (it fails on check if detector is operational), the navigation was inibited during first installation.

I have try to uninstall the app, enable navigation, reinstall the app but when create the detector, it fails again.

Same issue on a Samsung Core Prime with Android 5.1.1. It was with internet disabled and then fails detector initialization; I have tried to enable internet, uninstall the app, reinstall with B4ABridge, in debug. I have done the same with tutorial application, where I'm based for mine. The trace is down here.

B4X:
getTopLevelResources: null for user  0
ContextImpl running for user UserHandle{0} 0
DisplayManager()
ContextImpl running for user UserHandle{0} 0
getTopLevelResources: null for user  0
common created.
Starting remote logger. Port: 35352
*FMB* installDecor mIsFloating : false
*FMB* installDecor flags : -2139029248
Use EGL_SWAP_BEHAVIOR_PRESERVED: true
*FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
*FMB* isFloatingMenuEnabled return false
Initialized EGL, version 1.4
<tid=28280> OES20 ===> GC Version   : GC version rls_5011p6_GC5.5.14 
Enabling debug mode 0
*** Debugger waiting for connection (0) ***
ContextImpl running for user UserHandle{0} 0
ignoring event: create_menu
DisplayManager()
*** Debugger waiting for connection (1) ***
After accept
Copying updated assets files (1)
*** Service (starter) Create ***
** Activity (main) Create, isFirst = true **
** Activity (main) Create, isFirst = true **
mismatched stack depths (depth=1, incoming depth=2)
mismatched stack depths (depth=0, incoming depth=2)
Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.
Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0
Local module descriptor class for com.google.android.gms.vision.barcode not found.
Considering local module com.google.android.gms.vision.barcode:0 and remote module com.google.android.gms.vision.barcode:0
Error loading optional module com.google.android.gms.vision.barcode: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
Native handle not yet available. Reverting to no-op handle.
Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.
Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0
Local module descriptor class for com.google.android.gms.vision.barcode not found.
Considering local module com.google.android.gms.vision.barcode:0 and remote module com.google.android.gms.vision.barcode:0
Error loading optional module com.google.android.gms.vision.barcode: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
Timeline: Activity_idle id: android.os.BinderProxy@181ccede time:6939623
The error is the same that Erel indicate in post #10.
The device should upgrade its libraries by internet, but if I install before to enable it, I haven't found how to do for retrigger the download.

I follow the thread...
 
Upvote 0

em28

Member
Hi Erel, would downloading older Android SDK help? (the one we are instructed to download and unzip to for example C:\Android)
If it could be possible that it would work with old one, where could i find older version (of sdk and resources)? Because this did work couple of months ago, and i need to make it work again. Since then i did update b4a app and redownloaded android sdk (due to pc reinstall) - so i just need to get this to older state, where could i find older versions of sdk, resources (i guess b4a app can stay the same)
 
Upvote 0
Top