summaryrefslogtreecommitdiff
path: root/android/src/org
diff options
context:
space:
mode:
Diffstat (limited to 'android/src/org')
-rw-r--r--android/src/org/jetbrains/android/uipreview/ViewLoader.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/android/src/org/jetbrains/android/uipreview/ViewLoader.java b/android/src/org/jetbrains/android/uipreview/ViewLoader.java
index b03c92c0144..5ce1c3b4b25 100644
--- a/android/src/org/jetbrains/android/uipreview/ViewLoader.java
+++ b/android/src/org/jetbrains/android/uipreview/ViewLoader.java
@@ -497,6 +497,12 @@ public class ViewLoader {
catch (ClassNotFoundException e) {
myLogger.setMissingResourceClass(true);
}
+ catch (NoClassDefFoundError e) {
+ // ClassNotFoundException is thrown when no R class was found. But if the R class was found, but not the inner classes (like R$id or
+ // R$styleable), NoClassDefFoundError is thrown. This is likely because R class was generated by AarResourceClassGenerator but the
+ // inner classes weren't needed and hence not generated.
+ myLogger.setMissingResourceClass(true);
+ }
catch (InconvertibleClassError e) {
assert rClassName != null;
myLogger.addIncorrectFormatClass(rClassName, e);