Hello to All!
I use a 3rd party aar file for payment.
#AdditionalJar: mobilepaymentssdk-1.0.7.aar
I had to add manifest lines to work well.
Now I would like to use the newer version of this aar:
#AdditionalJar: mobilepaymentssdk-1.2.0.aar, I don't change any other line in the project, but there are a lot of error I got:
I can decompile the new version aar file and I can see that the "com.mypos.mobilepaymentssdk.PurchaseActivity" is in it.
I think this error related to the manifest, I miss something from that.
Do somebody met such a problem?
Steven
I use a 3rd party aar file for payment.
#AdditionalJar: mobilepaymentssdk-1.0.7.aar
I had to add manifest lines to work well.
B4X:
SetApplicationAttribute(android:theme, "@style/Theme.AppCompat")
AddApplicationText("<activity android:name="com.mypos.mobilepaymentssdk.StoreCardActivity" />")
AddApplicationText("<activity android:name="com.mypos.mobilepaymentssdk.PurchaseActivity" />")
AddApplicationText("<activity android:name="com.mypos.mobilepaymentssdk.RefundActivity" />")
#AdditionalJar: mobilepaymentssdk-1.2.0.aar, I don't change any other line in the project, but there are a lot of error I got:
B4X:
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:132)
at com.fizteszt.myposclasscard._purchase(myposclasscard.java:380)
at com.fizteszt.main$ResumableSub_fizet.resume(main.java:504)
at com.fizteszt.main._fizet(main.java:380)
at com.fizteszt.main._button1_click(main.java:374)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5278)
at android.view.View$PerformClick.run(View.java:21602)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5737)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/mypos/mobilepaymentssdk/PurchaseActivity;
at com.fizteszt.myposclasscard.myPOSPurchase(myposclasscard.java:690)
... 20 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mypos.mobilepaymentssdk.PurchaseActivity" on path: DexPathList[[zip file "/data/app/com.fizteszt-2/base.apk"],nativeLibraryDirectories=[/data/app/com.fizteszt-2/lib/arm, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 21 more
Suppressed: java.lang.NoClassDefFoundError: com.mypos.mobilepaymentssdk.PurchaseActivity
at dalvik.system.DexFile.defineClassNative(Native Method)
at dalvik.system.DexFile.defineClass(DexFile.java:226)
at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
at dalvik.system.DexPathList.findClass(DexPathList.java:338)
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
... 23 more
Suppressed: java.lang.ClassNotFoundException: com.mypos.mobilepaymentssdk.PurchaseActivity
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 22 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
I think this error related to the manifest, I miss something from that.
Do somebody met such a problem?
Steven