D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: cn.com.xxxdemo, PID: 7052
java.lang.RuntimeException: Unable to instantiate application cn.com.xxxdemo.MuKeApplication: java.lang.ClassNotFoundException: Didn't find class "cn.com.xxxdemo.MuKeApplication" on path: DexPathList[[zip file "/data/app/cn.com.xxxdemo-yqvKr6sYC9COtBObyr0MPw==/base.apk"],nativeLibraryDirectories=[/data/app/cn.com.xxxdemo-yqvKr6sYC9COtBObyr0MPw==/lib/x86, /data/app/cn.com.xxxdemo-yqvKr6sYC9COtBObyr0MPw==/base.apk!/lib/x86, /system/lib]]
at android.app.LoadedApk.makeApplication(LoadedApk.java:1069)
....
确实是Application的问题,但是之前运行的时候也有是MainActivity找不到,切点是在MainActivity,用的是Around,Application可以打印出耗时日志,MainActivity就找不到,换成Before时Application也不行,这个C++的工程为何创建Application会失败?
还有个问题,模拟器运行项目总是出现如下错误:
09/25 15:29:20: Launching 'app' on Pixel 3 API 28.
$ adb shell am start -n "cn.comxxxdemo/cn.com.xxxdemo.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Waiting for process to come online...
Timed out waiting for process to appear on emulator-5554.
Android Studio版本是3.5,这个是什么原因导致呢?