码迷,mamicode.com
首页 > 其他好文 > 详细

Test is not an annotation type 异常

时间:2017-04-05 00:46:43      阅读:428      评论:0      收藏:0      [点我收藏+]

标签:src   demo   blog   http   ati   异常   png   技术   方案   

1. 异常如下:

今天遇到了这个错,也是郁闷了。

提示Test不是一个注释类型:

技术分享

2. 异常分析:

刚开始以为自己把 Test 拼写错了;

后来以为版本有问题,所以又换成低版本的。

不行!!!

后来才发现,同包下有一个自定义的类,类名为 Test。

3. 解决方案

把同包下名为Test的类改名为Demo,OK。

 

Test is not an annotation type 异常

标签:src   demo   blog   http   ati   异常   png   技术   方案   

原文地址:http://www.cnblogs.com/BaiLaowu/p/6667018.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!