The specific error message
Java. Lang. NoClassDefFoundError: Failed resolution of: [Ljava/beans/PropertyDescriptor;
At org.apache.com mons. Beanutils. PropertyUtilsBean. GetPropertyDescriptors (PropertyUtilsBean. Java: 962)
At org.apache.com mons. Beanutils. PropertyUtilsBean. GetPropertyDescriptors (PropertyUtilsBean. Java: 1075)
At org.apache.com mons. Beanutils. PropertyUtils. GetPropertyDescriptors (PropertyUtils. Java: 499)
At net. Sf. Json. JSONObject. DefaultBeanProcessing (JSONObject. Java: 711)
At net. Sf. Json. JSONObject. _fromBean (JSONObject. Java: 699)
At net. Sf. Json. JSONObject. FromObject (JSONObject. Java: 172)
At net. Sf. Json. JSONObject. FromObject (JSONObject. Java: 134)
At com. Eidlink. Idocr. SDK. Service. EidlinkService. IdCardCheck (Unknown Source)
At com. Example. Testthree. MainActivity $Companion. IdCardCheckTest (MainActivity. Kt: 26)
At com. Example. Testthree. MainActivity. OnCreate (MainActivity. Kt: 16)
. An android app. Activity. PerformCreate (6301) Activity. Java:
. An android app. Instrumentation. CallActivityOnCreate (1113) Instrumentation. Java:
. An android app. ActivityThread. PerformLaunchActivity (ActivityThread. Java: 2530)
. An android app. ActivityThread. HandleLaunchActivity (ActivityThread. Java: 2665)
. An android app. ActivityThread. - wrap11 (ActivityThread. Java)
An android. App. ActivityThread $H.h andleMessage (ActivityThread. Java: 1499)
An android. OS. Handler. DispatchMessage (Handler. Java: 111)
. An android OS. Stars. Loop (207). Which Java:
. An android app. ActivityThread. Main (5765) ActivityThread. Java:
The at Java. Lang. Reflect. Method. Invoke (Native Method)
At com. Android. Internal. OS. $MethodAndArgsCaller ZygoteInit. Run (ZygoteInit. Java: 789)
At com. Android. Internal. OS. ZygoteInit. Main (ZygoteInit. Java: 679)
Under Caused by: Java. Lang. ClassNotFoundException: Didn 't find the class "Java. Beans. PropertyDescriptor" on the path: DexPathList [[zip file "/data/app/com. Example. Testthree - 2/base. The apk"], nativeLibraryDirectories=[/data/app/com. Example. Testthree - 2/lib/arm/vendor/lib/system/lib]]
The at dalvik. System. BaseDexClassLoader. FindClass (BaseDexClassLoader. Java: 56)
The at Java. Lang. This. LoadClass (511). This Java:
The at Java. Lang. This. LoadClass (469). This Java:
At org.apache.com mons. Beanutils. PropertyUtilsBean. GetPropertyDescriptors (PropertyUtilsBean. Java: 962)
At org.apache.com mons. Beanutils. PropertyUtilsBean. GetPropertyDescriptors (PropertyUtilsBean. Java: 1075)
At org.apache.com mons. Beanutils. PropertyUtils. GetPropertyDescriptors (PropertyUtils. Java: 499)
At net. Sf. Json. JSONObject. DefaultBeanProcessing (JSONObject. Java: 711)
At net. Sf. Json. JSONObject. _fromBean (JSONObject. Java: 699)
At net. Sf. Json. JSONObject. FromObject (JSONObject. Java: 172)
At net. Sf. Json. JSONObject. FromObject (JSONObject. Java: 134)
At com. Eidlink. Idocr. SDK. Service. EidlinkService. IdCardCheck (Unknown Source)
At com. Example. Testthree. MainActivity $Companion. IdCardCheckTest (MainActivity. Kt: 26)
At com. Example. Testthree. MainActivity. OnCreate (MainActivity. Kt: 16)
. An android app. Activity. PerformCreate (6301) Activity. Java:
. An android app. Instrumentation. CallActivityOnCreate (1113) Instrumentation. Java:
. An android app. ActivityThread. PerformLaunchActivity (ActivityThread. Java: 2530)
. An android app. ActivityThread. HandleLaunchActivity (ActivityThread. Java: 2665)
. An android app. ActivityThread. - wrap11 (ActivityThread. Java)
An android. App. ActivityThread $H.h andleMessage (ActivityThread. Java: 1499)
An android. OS. Handler. DispatchMessage (Handler. Java: 111)
. An android OS. Stars. Loop (207). Which Java:
. An android app. ActivityThread. Main (5765) ActivityThread. Java:
The at Java. Lang. Reflect. Method. Invoke (Native Method)
At com. Android. Internal. OS. $MethodAndArgsCaller ZygoteInit. Run (ZygoteInit. Java: 789)
At com. Android. Internal. OS. ZygoteInit. Main (ZygoteInit. Java: 679)
Suppressed: Java. Lang. ClassNotFoundException: Java beans. PropertyDescriptor
The at Java. Lang. Class. ClassForName (Native Method)
The at Java. Lang. BootClassLoader. FindClass (781). This Java:
The at Java. Lang. BootClassLoader. LoadClass (841). This Java:
The at Java. Lang. This. LoadClass (504). This Java:
. 23 more
Under Caused by: Java. Lang. NoClassDefFoundError: Class not found using the boot Class loader. No stack trace the available
Thank you for your attention!
CodePudding user response:
You this is not a third-party jar with android, right, in the android Java beans is not the same as in Java, not PropertyDescriptor thisCodePudding user response:
Java. Beans. PropertyDescriptor, android didn't this class, you use a Java jar package,CodePudding user response:
This class can't find, it is suggested that 1: check the jar package import is correct, such as should guide org. 1 have the guide into org. 2: check if the jar was be missing parts, 3: check whether the environment is normalCodePudding user response:
nullnull