Home > other >  [in] the Unity and AndroidStudio interaction, packaged apk run flash back
[in] the Unity and AndroidStudio interaction, packaged apk run flash back

Time:09-28

As title, I was conducted step by step according to this tweet, https://www.jianshu.com/p/c06063a403c6, well packaged, but on a real machine run flash back, back to AndroidStudio looked at Logcat, found the following error:

 
12-30 00:58:16. 662, 30138-30138/? E/AndroidRuntime: FATAL EXCEPTION: the main
Process: com. Qihua. Unity_exchange, PID: 30138
Java. Lang. RuntimeException: Unable to instantiate the activity ComponentInfo {com. Qihua. Unity_exchange/com. Qihua. Unity_exchange. MainActivity} : Java. Lang. ClassNotFoundException: Didn 't find the class "com. Qihua. Unity_exchange. MainActivity" on the path: DexPathList [[zip file "/data/app/com. Qihua. Unity_exchange - 1/base. Apk"], nativeLibraryDirectories=[/data/app/com. Qihua./lib/arm unity_exchange - 1,/vendor/lib,/system/lib]]
. An android app. ActivityThread. PerformLaunchActivity (ActivityThread. Java: 2588)
. An android app. ActivityThread. HandleLaunchActivity (ActivityThread. Java: 2747)
. An android app. ActivityThread. Access the $900 (187) ActivityThread. Java:
An android. App. ActivityThread $H.h andleMessage (ActivityThread. Java: 1584)
An android. OS. Handler. DispatchMessage (Handler. Java: 111)
. An android OS. Stars. Loop (194). Which Java:
. An android app. ActivityThread. Main (5877) ActivityThread. Java:
The at Java. Lang. Reflect. Method. Invoke (Native Method)
The at Java. Lang. Reflect. Method. Invoke (372) Method. The Java:
At com. Android. Internal. OS. $MethodAndArgsCaller ZygoteInit. Run (ZygoteInit. Java: 1020)
At com. Android. Internal. OS. ZygoteInit. Main (ZygoteInit. Java: 815)
Under Caused by: Java. Lang. ClassNotFoundException: Didn 't find the class "com. Qihua. Unity_exchange. MainActivity" on the path: DexPathList [[zip file "/data/app/com. Qihua. Unity_exchange - 1/base. Apk"], nativeLibraryDirectories=[/data/app/com. Qihua./lib/arm unity_exchange - 1,/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:
. An android app. Instrumentation. NewActivity (1078) Instrumentation. Java:
. An android app. ActivityThread. PerformLaunchActivity (ActivityThread. Java: 2565)
. An android app. ActivityThread. HandleLaunchActivity (ActivityThread. Java: 2747)
. An android app. ActivityThread. Access the $900 (187) ActivityThread. Java:
An android. App. ActivityThread $H.h andleMessage (ActivityThread. Java: 1584)
An android. OS. Handler. DispatchMessage (Handler. Java: 111)
. An android OS. Stars. Loop (194). Which Java:
. An android app. ActivityThread. Main (5877) ActivityThread. Java:
The at Java. Lang. Reflect. Method. Invoke (Native Method)
The at Java. Lang. Reflect. Method. Invoke (372) Method. The Java:
At com. Android. Internal. OS. $MethodAndArgsCaller ZygoteInit. Run (ZygoteInit. Java: 1020)
At com. Android. Internal. OS. ZygoteInit. Main (ZygoteInit. Java: 815)
Suppressed: Java. Lang. NoClassDefFoundError: com. Qihua. Unity_exchange. MainActivity
The at dalvik. System. DexFile. DefineClassNative (Native Method)
The at dalvik. System. DexFile. DefineClass (DexFile. Java: 226)
The at dalvik. System. DexFile. LoadClassBinaryName (DexFile. Java: 219)
The at dalvik. System. DexPathList. FindClass (DexPathList. Java: 322)
The at dalvik. System. BaseDexClassLoader. FindClass (BaseDexClassLoader. Java: 54)
. 14 more
Suppressed: Java. Lang. ClassNotFoundException: com. Qihua. Unity_exchange. MainActivity
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:
. 13 more
Under Caused by: Java. Lang. NoClassDefFoundError: Class not found using the boot Class loader. No stack available
12-30 00:58:17. 050, 879-927/? E/WindowState: getStack: Window {158 afcbe u0 Starting com. Qihua. Unity_exchange} couldn 't find taskId=168 Callers=com. Android. The server. The wm. The WindowState. GetDisp


This is what circumstance, why can't find MainActivity??????? Help!!!!!!

CodePudding user response:

If you have a better interaction method please leave a message!!!!!! (the Unity and AndroidStudio call each other, don't ask why call)

CodePudding user response:

Problem solving and Unity is the best way to pack a Google Gradle Project, import into AndroidStudio as resources exist, direct messages I don't understand

CodePudding user response:

AndroidMainfest. XML file is important, look at some of your files AndroidMainfest. XML
The registered mainactivity

CodePudding user response:

reference 4 floor weixin_37658157 response:
problem solving and Unity is the best way to pack a Google Gradle Project, import into AndroidStudio as resources exist, don't understand the DMS I
, the Google Gradle Project is what?

CodePudding user response:

reference 4 floor weixin_37658157 response:
problem solving and Unity is the best way to pack a Google Gradle Project, import into AndroidStudio as resources exist, don't understand the DMS I
I also encountered this problem, can add your QQ to communicate it to me?

CodePudding user response:

refer to 7th floor MTL0912 response:
Quote: refer to 4th floor weixin_37658157 response:

nullnullnullnullnullnullnullnullnull
  • Related