Cannot instantiate test(s): java.lang.SecurityException: Prohibited package name: java.com.crosudd.t

时间:2022-06-26 08:15:01

异常错误:Cannot instantiate test(s): java.lang.SecurityException: Prohibited package name: java.com.crosudd.test

是在测试包:包名出现了java.com.crosudd.test      java开头,应该改为  com.crosudd.test   把Java去掉 就可以了写测试类了。个人解决办法,如有不同请耐心在网上自行搜索