anonymous Log in
Search
Recents:
v3.0
sd
Re: LogCat: ClassNotFoundException: Didn't find class "com.google.zxing.BarcodeFormat"
09/12/19 19:45

Miguel Figueroa

Replies: 0

Se corrige si en un panel cualquiera incluyo un SD Scanner. Sería bueno
saber bien por qué.
Logré generar un pdf417 en una imagen png, sólo usando un procedure con
comandos java. Lo ideal sería hacer un External Object, pero por ahora lo
solucioné rápido de esta forma.
salu2!!!
El lun., 9 de dic. de 2019 a la(s) 09:24, Miguel Figueroa J. (
miguel.figueroa.j@gmail.com) escribió:
> Amigos
>
> Estoy tratando de usar zxing para generar un pdf417. El Rebuild All va
> perfecto, pero al ejecutar falla por ClassNotFoundException.
>
> Tengo:
> GX16u6
> Classpath=C:\javalib\Android\zxing\core\3.3.2\core-3.3.2.jar
>
> LogCat:
> 12-09 11:28:26.528: E/AndroidRuntime(12192): FATAL EXCEPTION: AsyncTask #3
> 12-09 11:28:26.528: E/AndroidRuntime(12192): Process:
> com.artech.testsdgx16.testsdgx16, PID: 12192
> 12-09 11:28:26.528: E/AndroidRuntime(12192): java.lang.RuntimeException:
> An error occurred while executing doInBackground()
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> android.os.AsyncTask$3.done(AsyncTask.java:354)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> java.util.concurrent.FutureTask.setException(FutureTask.java:252)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> java.util.concurrent.FutureTask.run(FutureTask.java:271)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> java.lang.Thread.run(Thread.java:764)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): Caused by:
> java.lang.NoClassDefFoundError: Failed resolution of:
> Lcom/google/zxing/BarcodeFormat;
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> com.testsdgx16.pdf417test.executePrivate2(pdf417test.java:122)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> com.testsdgx16.pdf417test.privateExecute(pdf417test.java:73)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> com.testsdgx16.pdf417test.execute_int(pdf417test.java:67)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> com.testsdgx16.pdf417test.execute(pdf417test.java:58)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> com.testsdgx16.test1.privateExecute(test1.java:60)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> com.testsdgx16.test1.execute_int(test1.java:54)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> com.testsdgx16.test1.execute(test1.java:46)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> com.testsdgx16.test1.execute(test1.java:24)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> com.artech.layers.LocalProcedure.execute(LocalProcedure.java:56)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> com.artech.actions.CallGxObjectAction.runGxObject(CallGxObjectAction.java:116)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> com.artech.actions.CallGxObjectAction.Do(CallGxObjectAction.java:76)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> com.artech.actions.CompositeAction.Do(CompositeAction.java:111)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> com.artech.actions.ActionExecution$2.doInBackground(ActionExecution.java:360)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> com.artech.actions.ActionExecution$2.doInBackground(ActionExecution.java:349)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> android.os.AsyncTask$2.call(AsyncTask.java:333)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): ... 3 more
> 12-09 11:28:26.528: E/AndroidRuntime(12192): Caused by:
> java.lang.ClassNotFoundException: Didn't find class
> "com.google.zxing.BarcodeFormat" on path: DexPathList[[zip file
> "/system/framework/org.apache.http.legacy.boot.jar", zip file
> "/data/app/com.artech.testsdgx16.testsdgx16-mWppOGuCrmCOkLb1KTVFcQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.artech.testsdgx16.testsdgx16-mWppOGuCrmCOkLb1KTVFcQ==/lib/x86,
> /system/lib]]
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> java.lang.ClassLoader.loadClass(ClassLoader.java:379)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): at
> java.lang.ClassLoader.loadClass(ClassLoader.java:312)
> 12-09 11:28:26.528: E/AndroidRuntime(12192): ... 19 more
>
> Agradezco cualquier comentario,
>
> salu2!!!
>
>
>


Back to sd