My app crashes when I try to navigate, can't seem to find issue

前端 未结 3 1544
时光说笑
时光说笑 2021-01-29 08:05

I can\'t seem to find whats wrong with my application... Here is the logcat:

11-05 16:37:30.030 7867-7867/com.capstone.miguel.studentassistant E/AndroidRuntime:          


        
相关标签:
3条回答
  • 2021-01-29 08:28

    This line is the problem

    Caused by: java.lang.ClassCastException: android.support.design.widget.TextInputEditText cannot be cast to android.support.design.widget.TextInputLayout
    

    Check the declared types match those in the layout file

    0 讨论(0)
  • 2021-01-29 08:37

    It looks like you have wrong casting: java.lang.ClassCastException: android.support.design.widget.TextInputEditText cannot be cast to android.support.design.widget.TextInputLayout

    Check if you use the same types in xml and in your code, probably they are different.

    0 讨论(0)
  • 2021-01-29 08:40

    private TextInputEditText inputEmail, inputPass;

    inputEmail = (TextInputEditText) findViewById(R.id.input_log_email); inputPass = (TextInputEditText) findViewById(R.id.input_log_pass);

    0 讨论(0)
提交回复
热议问题