android ClassNotFoundException: Didn't find class

前端 未结 3 1338
故里飘歌
故里飘歌 2021-02-19 20:54
    02-28 01:49:27.741: E/AndroidRuntime(23024): FATAL EXCEPTION: main
    02-28 01:49:27.741: E/AndroidRuntime(23024): java.lang.RuntimeException: Unable to instantiate         


        
3条回答
  •  隐瞒了意图╮
    2021-02-19 21:19

    You do have a package mismatch error, it needs to be:

    package="com.haber29.android.reader"
    

    Since reader is the next subpackage and this is the subpackage that contains the Activities.

    And don't forget, you can specify the fully qualified name for each Activity, to prevent confusion:

    
    
        
        
        
            
                
                    
                    
                
            
            
                
                    
                
                
        
    
    

提交回复
热议问题