You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 45c0413
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/helper/CanonicalNameConstants.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,7 @@ public final class CanonicalNameConstants {
annotationHelper.printAnnotationError(element, "Could not find the RoboGuice framework in the classpath, the following class is missing: " + CanonicalNameConstants.ROBO_CONTEXT);
690
690
}
691
691
692
-
try {
693
-
if (elementUtils.getTypeElement(CanonicalNameConstants.ROBO_INJECTOR) == null) {
694
-
valid.invalidate();
695
-
annotationHelper.printAnnotationError(element, "Could not find the Guice framework in the classpath, the following class is missing: " + CanonicalNameConstants.ROBO_INJECTOR);
696
-
}
697
-
} catch (RuntimeExceptione) {
692
+
if (elementUtils.getTypeElement(CanonicalNameConstants.ROBO_APPLICATION) != null) {
698
693
valid.invalidate();
699
-
annotationHelper.printAnnotationError(element, "Could not find the Guice framework in the classpath, the following class is missing: " + CanonicalNameConstants.ROBO_INJECTOR);
694
+
annotationHelper.printAnnotationError(element, "It seems you are using an old version of RoboGuice. Be sure to use version 2.0!");
privatestaticfinalStringON_CONTENT_CHANGED_JAVADOC = "We cannot simply copy the " + "code from RoboActivity, because that can cause classpath issues. " + "For further details see issue #1116.";
0 commit comments