package com.example.activity02;import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;public class MyAuthenticator extends Authenticator { private String strUser; 
    private String strPwd;
    
    public MyAuthenticator() {    
    }
    
    public PasswordAuthentication performCheck(String userName,String password)
    {
     this.strUser = userName;
     this.strPwd = password;
     return getPasswordAuthentication();
    }
    
    protected PasswordAuthentication getPasswordAuthentication() { 
      return new PasswordAuthentication(strUser, strPwd); 
    } 
}这个类在android项目中编译没有问题,运行的时候,报java.lang.NoClassDefFoundError: com.example.activity02.MyAuthenticator
谁知道什么原因,求帮忙,这个是一个认证权限的类android问题