Good day, I am new to Android Studio but I have to create an application of a single activity in which with a button activate the reader (I am working with RFID readers) of the device that has the application installed.
I have two buttons, one to connect, or activate, to the reader and another to read. But when you click on the connect button, the application closes. And the logcat marks the error:
AsyncTask # 1 Error in Android Studio
I leave the full text of the logcat and thank you in advance.
06-18 11:18:58.047 27412-27971/com.example.alejandrabuentello.myapplication E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
Process: com.example.alejandrabuentello.myapplication, PID: 27412
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:325)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
Caused by: java.lang.ExceptionInInitializerError
at com.thingmagic.StUhfReaderCreatorOfModelGs1Proxy.newSenterInstance(StUhfReaderCreatorOfModelGs1Proxy.java:13)
at com.senter.function.openapi.unstable.StUhfReaderCreatorOfModelGs1.newInstance(StUhfReaderCreatorOfModelGs1.java:30)
at com.example.alejandrabuentello.myapplication.ReaderConnect.connect(ReaderConnect.java:21)
at com.example.alejandrabuentello.myapplication.rfidreader.Listener.ConnectionListener$ReaderConnectionThread.doInBackground(ConnectionListener.java:107)
at com.example.alejandrabuentello.myapplication.rfidreader.Listener.ConnectionListener$ReaderConnectionThread.doInBackground(ConnectionListener.java:76)
at android.os.AsyncTask$2.call(AsyncTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
Caused by: java.lang.RuntimeException: libname: linux-aarch64.lib not found
at com.thingmagic.SerialTransportNative.load(SerialTransportNative.java:113)
at com.thingmagic.SerialTransportNative.<clinit>(SerialTransportNative.java:68)
at com.thingmagic.StUhfReaderCreatorOfModelGs1Proxy.newSenterInstance(StUhfReaderCreatorOfModelGs1Proxy.java:13)
at com.senter.function.openapi.unstable.StUhfReaderCreatorOfModelGs1.newInstance(StUhfReaderCreatorOfModelGs1.java:30)
at com.example.alejandrabuentello.myapplication.ReaderConnect.connect(ReaderConnect.java:21)
at com.example.alejandrabuentello.myapplication.rfidreader.Listener.ConnectionListener$ReaderConnectionThread.doInBackground(ConnectionListener.java:107)
at com.example.alejandrabuentello.myapplication.rfidreader.Listener.ConnectionListener$ReaderConnectionThread.doInBackground(ConnectionListener.java:76)
at android.os.AsyncTask$2.call(AsyncTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
06-18 11:18:58.137 27412-27971/com.example.leerrfid.myapplication I/Process: Sending signal. PID: 27412 SIG: 9