Home > Enterprise >  Xamarin. Forms Android debug program error: Didn 't find the class PowerSaveModeBroadcastReceiv
Xamarin. Forms Android debug program error: Didn 't find the class PowerSaveModeBroadcastReceiv

Time:09-17

:
Vs 2019 16.2.5 (only installed components needed for cross-platform mobile application development)
Microsoft.net Framework 4.8.03752
Win10


Debug Android project is always an error is as follows:

I/MonoDroid 09-24 11:15:32. 353 (14395) : UNHANDLED EXCEPTION:
I/MonoDroid 09-24 11:15:32. 359 (14395) : Java. Lang. ClassNotFoundException: Didn 't find the class of "md51558244f76c53b6aeda52c8a337f2c37. PowerSaveModeBroadcastReceiver" on the path: DexPathList [[zip file "/data/app/com. ZHRL. AepApp - 1/base. Apk"], nativeLibraryDirectories=[/data/app/com. ZHRL./lib/arm64 AepApp - 1,/data/app/com ZHRL. AepApp - 1/base. Apk!/lib/arm64 - v8a,/vendor/lib64/system/lib64]]
I/MonoDroid 09-24 11:15:32. 359 (14395) : at the Java. Interop. JniEnvironment + Types. The FindClass (System. String classname) x00114 [0] in & lt; 212 d71eb7ebe48a08a28594a6b73aa4b & gt; : 0
I/MonoDroid 09-24 11:15:32. 359 (14395) : at the Java. Interop. JniType.. Ctor (System. String classname) x00006 [0] in & lt; 212 d71eb7ebe48a08a28594a6b73aa4b & gt; : 0
I/MonoDroid 09-24 11:15:32. 359 (14395) : at the Java. Interop. JniPeerMembers + JniInstanceMethods.. Ctor (System. The Type declaringType) x0005b [0] in & lt; 212 d71eb7ebe48a08a28594a6b73aa4b & gt; : 0
I/MonoDroid 09-24 11:15:32. 359 (14395) : at the Java. Interop. JniPeerMembers + JniInstanceMethods. GetConstructorsForType (System. The Type declaringType) x00031 [0] in & lt; 212 d71eb7ebe48a08a28594a6b73aa4b & gt; : 0
I/MonoDroid 09-24 11:15:32. 359 (14395) : at the Java. Interop. JniPeerMembers + JniInstanceMethods. StartCreateInstance (System. String constructorSignature, System. The Type declaringType, Java. The Interop. JniArgumentValue * parameters) x00038 [0] in & lt; 212 d71eb7ebe48a08a28594a6b73aa4b & gt; : 0
I/MonoDroid 09-24 11:15:32. 359 (14395) : an Android. Content. BroadcastReceiver.. Ctor () [0 x00034] in & lt; 3324153164274220 ab14392825330ba2 & gt; : 0
I/MonoDroid 09-24 11:15:32. 359 (14395) : the at Xamarin. Forms. Platform. Android. PowerSaveModeBroadcastReceiver.. Ctor () & lt; 0 x7f635f0830 + 0 x00053 & gt; In & lt; E6fe81c4055a4db5bd435b7d12d894e3 & gt; : 0
I/MonoDroid 09-24 11:15:32. 359 (14395) : the at Xamarin. Forms. Platform. Android. FormsAppCompatActivity. OnCreate (Android. OS. Bundle savedInstanceState) x000b7 [0] in D: \ a \ \ s 1 \ Xamarin Forms. Platform. Android \ AppCompat \ FormsAppCompatActivity cs: 191
I/MonoDroid 09-24 11:15:32. 360 (14395) : the at AepApp. The Droid. MainActivity. OnCreate (Android. OS. Bundle Bundle) x00076 [0] in C: \ Users \ Fionaxu \ source \ repos \ UAPP \ Droid \ MainActivity cs: 35
I/MonoDroid 09-24 11:15:32. 360 (14395) : an Android. The App. The Activity. The n_OnCreate_Landroid_os_Bundle_ (System. IntPtr jnienv, System. IntPtr native__this, System. IntPtr native_savedInstanceState) x00011 [0] in & lt; 3324153164274220 ab14392825330ba2 & gt; : 0
I/MonoDroid 09-24 11:15:32. 360 (14395) : the at (wrapper dynamic - method). Android Runtime. DynamicMethodNameCounter. 7 (intptr, intptr, intptr)
I/MonoDroid 09-24 11:15:32. 360 (14395) : -- -- -- End of managed Java Lang. ClassNotFoundException stack trace -- -- --
I/MonoDroid 09-24 11:15:32. 360 (14395) : Java. Lang. ClassNotFoundException: Didn 't find the class of "md51558244f76c53b6aeda52c8a337f2c37. PowerSaveModeBroadcastReceiver" on the path: DexPathList [[zip file "/data/app/com. ZHRL. AepApp - 1/base. Apk"], nativeLibraryDirectories=[/data/app/com. ZHRL./lib/arm64 AepApp - 1,/data/app/com ZHRL. AepApp - 1/base. Apk!/lib/arm64 - v8a,/vendor/lib64/system/lib64]]
I/MonoDroid 09-24 11:15:32. 360 (14395) : at dalvik. System. BaseDexClassLoader. FindClass (BaseDexClassLoader. Java: 56)
I/MonoDroid 09-24 11:15:32. 360 (14395) : at the Java. Lang. This. LoadClass (511). This Java:
I/MonoDroid 09-24 11:15:32. 360 (14395) : at the Java. Lang. This. LoadClass (469). This Java:
I/MonoDroid 09-24 11:15:32. 360 (14395) : at md56b3a53134363332232b5ab6b69c9bac6. MainActivity. N_onCreate (Native Method)
I/MonoDroid 09-24 11:15:32. 360 (14395) : at md56b3a53134363332232b5ab6b69c9bac6. MainActivity. OnCreate (MainActivity. Java: 36)
I/MonoDroid 09-24 11:15:32. 360 (14395) : an android. The app. Activity. PerformCreate (6372) Activity. Java:
I/MonoDroid 09-24 11:15:32. 360 (14395) : an android. The app. Instrumentation. CallActivityOnCreate (1110) Instrumentation. Java:
I/MonoDroid 09-24 11:15:32. 360 (14395) : an android. The app. ActivityThread. PerformLaunchActivity (ActivityThread. Java: 2432)
I/MonoDroid 09-24 11:15:32. 360 (14395) : an android. The app. ActivityThread. HandleLaunchActivity (ActivityThread. Java: 2539)
I/MonoDroid 09-24 11:15:32. 360 (14395) : an android. The app. ActivityThread. Access the $900 (168) ActivityThread. Java:
I/MonoDroid 09-24 11:15:32. 360 (14395) : an android. The app. ActivityThread $H.h andleMessage (ActivityThread. Java: 1378)
I/MonoDroid 09-24 11:15:32. 360 (14395) : an android. The OS. Handler. DispatchMessage (Handler. Java: 102)
I/MonoDroid 09-24 11:15:32. 360 (14395) : an android. The OS. Stars. Loop (150). Which Java:
I/MonoDroid 09-24 11:15:32. 360 (14395) : an android. The app. ActivityThread. Main (5659) ActivityThread. Java:
I/MonoDroid 09-24 11:15:32. 360 (14395) : at the Java. Lang. Reflect. Method. Invoke (Native Method)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related