Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Solicitud de documentación] Error ApacheLogging #34

Open
alexlarraga1 opened this issue May 29, 2023 · 0 comments
Open

[Solicitud de documentación] Error ApacheLogging #34

alexlarraga1 opened this issue May 29, 2023 · 0 comments

Comments

@alexlarraga1
Copy link

Al momento de ejecutar la version 2.1

E  FATAL EXCEPTION: AsyncTask #2
   Process: mx.com.sfinx.jal.misaldo, PID: 4584
   java.lang.RuntimeException: An error occurred while executing doInBackground()
   	at android.os.AsyncTask$4.done(AsyncTask.java:415)
   	at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381)
   	at java.util.concurrent.FutureTask.setException(FutureTask.java:250)
   	at java.util.concurrent.FutureTask.run(FutureTask.java:269)
   	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
   	at java.lang.Thread.run(Thread.java:1012)
   Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/commons/logging/LogFactory;
   	at org.apache.http.impl.client.AbstractHttpClient.<init>(AbstractHttpClient.java:182)
   	at org.apache.http.impl.client.DefaultHttpClient.<init>(DefaultHttpClient.java:150)
   	at io.conekta.conektasdk.Connection$Task.doInBackground(Connection.java:48)
   	at io.conekta.conektasdk.Connection$Task.doInBackground(Connection.java:43)
   	at android.os.AsyncTask$3.call(AsyncTask.java:394)
   	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
   	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305) 
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137) 
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637) 
   	at java.lang.Thread.run(Thread.java:1012) 
   Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.commons.logging.LogFactory" on path: DexPathList
   	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
   	at org.apache.http.impl.client.AbstractHttpClient.<init>(AbstractHttpClient.java:182) 
   	at org.apache.http.impl.client.DefaultHttpClient.<init>(DefaultHttpClient.java:150) 
   	at io.conekta.conektasdk.Connection$Task.doInBackground(Connection.java:48) 
   	at io.conekta.conektasdk.Connection$Task.doInBackground(Connection.java:43) 
   	at android.os.AsyncTask$3.call(AsyncTask.java:394) 
   	at java.util.concurrent.FutureTask.run(FutureTask.java:264) 
   	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305) 
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137) 
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637) 
   	at java.lang.Thread.run(Thread.java:1012) 

La solución se encuentra al añadir en AndroidManifest.xml dentro la etiquieta

    <uses-library android:name ="org.apache.http.legacy" android:required ="false"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant