当 Profiler 启动时,Android 应用程序给出“JVMTI 错误:103(JVMTI_ERROR_ILLEGAL_ARGUMENT)”

Cos*_*aru 11 java android android-studio

在我的 Android 应用程序中,当我尝试启动 Profiler 时,它给了我这个错误,然后应用程序很快崩溃。这是日志:

V/StudioProfiler: Profiler initialization complete on agent.
V/StudioProfiler: Handling agent command 405 for pid: 5317.
V/StudioProfiler: Handling agent command 404 for pid: 5317.
V/StudioProfiler: Loaded classes: 15997
V/StudioProfiler: New JNI table set
I/app           : The stack is not large enough for a start_depth of 0.
E/StudioProfiler: JVMTI error: 103(JVMTI_ERROR_ILLEGAL_ARGUMENT) 
V/StudioProfiler: Tracking initialization took: 507444270ns
I/app           : The stack is not large enough for a start_depth of 0.
E/StudioProfiler: JVMTI error: 103(JVMTI_ERROR_ILLEGAL_ARGUMENT) 
I/app           : The stack is not large enough for a start_depth of 0.
E/StudioProfiler: JVMTI error: 103(JVMTI_ERROR_ILLEGAL_ARGUMENT) 
I/app           : The stack is not large enough for a start_depth of 0.
E/StudioProfiler: JVMTI error: 103(JVMTI_ERROR_ILLEGAL_ARGUMENT) 
I/app           : The stack is not large enough for a start_depth of 0.
E/StudioProfiler: JVMTI error: 103(JVMTI_ERROR_ILLEGAL_ARGUMENT) 
W/app           : Verification of void com.android.tools.profiler.support.ProfilerService.<init>(boolean) took 265.237ms
Run Code Online (Sandbox Code Playgroud)

我记得分析器前段时间在工作,我做了很多更改,所以我不确定为什么它不再工作了。

提前致谢!