java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cmct.tcms/com.cmct.module_tunnel.mvp.ui.activity.GeologyInvestigationMethodActivity}: android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment com.cmct.module_tunnel.mvp.ui.fragment.FaceObservationNewFragment: could not find Fragment constructor at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3501) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3661) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2108) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:236) at android.app.ActivityThread.main(ActivityThread.java:7876) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
时间: 2024-04-26 17:21:12 浏览: 199
javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair 解决方法总结
这是一个Java程序中的运行时异常,出现在启动名为"com.cmct.tcms/com.cmct.module_tunnel.mvp.ui.activity.GeologyInvestigationMethodActivity"的Activity时。具体原因是Fragment实例化失败,无法找到名为"com.cmct.module_tunnel.mvp.ui.fragment.FaceObservationNewFragment"的构造函数。可能的原因是该Fragment没有正确的构造函数或者构造函数参数不正确。需要检查代码并进行调试。
阅读全文