triniwiz / nativescript-aws-sdk

Apache License 2.0
17 stars 15 forks source link

Getting `Lorg/apache/commons/logging/LogFactory` error in ANDROID #8

Open hariaravind10 opened 5 years ago

hariaravind10 commented 5 years ago

I am getting below error when image upload to the aws-s3 bucket using "nativescript-aws-sdk" I am using API level: 28 and Android mobile version 'pie'

The below one is placed in the manifest file service android:name= "com.amazonaws.mobileconnectors.s3.transferutility.TransferService" android:enabled="true"

ERROR Error: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/commons/logging/LogFactory; JS: com.amazonaws.AmazonWebServiceClient.(AmazonWebServiceClient.java:65) JS: com.tns.Runtime.callJSMethodNative(Native Method) JS: com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1203) JS: com.tns.Runtime.callJSMethodImpl(Runtime.java:1083) JS: com.tns.Runtime.callJSMethod(Runtime.java:1070) JS: com.tns.Runtime.callJSMethod(Runtime.java:1050) JS: com.tns.Runtime.callJSMethod(Runtime.java:1042) JS: com.tns.gen.java.lang.Object_button_19_32_ClickListenerImpl.onClick(Object_button_19_32_ClickListenerImpl.java:17) JS: android.view.View.performClick(View.java:7339) JS: android.widget.TextView.performClick(TextView.java:14222) JS: android.view.View.performClickInternal(View.java:7305) JS: android.view.View.access$3200(View.java:846) JS: android.view.View$PerformClick.run(View.java:27788) JS: android.os.Handler.handleCallback(Handler.java:873)

retronoodle commented 4 years ago

+1 having this issue too.

calleja23 commented 3 years ago

You must add this in your manifest.xml

https://stackoverflow.com/questions/51872333/java-lang-noclassdeffounderror-failed-resolution-of-lorg-apache-commons-loggin