You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.exemple.demo/com.just.agentweb.AgentActionFragment}: java.lang.ClassCastException: com.just.agentweb.AgentActionFragment cannot be cast to android.app.Activity
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2881)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.lang.ClassCastException: com.just.agentweb.AgentActionFragment cannot be cast to android.app.Activity
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:69)
at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:0)
at android.app.Instrumentation.newActivity(Instrumentation.java:1215)
at EdHooker_.hook(EdHooker_.java:150)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2869)
... 11 more
Back traces ends.
The text was updated successfully, but these errors were encountered:
运行环境
Pixel 3 XL
Android 9
7.0.2
v5.0.0-alpha.1-androidx
具体问题描述
在该机型下出现Crash,应该源码中manifest文件中activity的name定义成fragment的问题,出现类型装换异常
异常日志(堆栈)
The text was updated successfully, but these errors were encountered: